mirror of
https://github.com/supabase/supabase.git
synced 2026-10-05 17:35:10 +03:00
Minor fixes.
This commit is contained in:
1 parent
15818116b9
commit
dc1db5b8e3
2 files changed
+2
-3
No files matched your search
@@ -23,6 +23,7 @@ const AddNewFactorModal = ({ visible, onClose }: AddNewFactorModalProps) => {
|
||||
// reset has to be called because the state is kept between if the process is canceled during
|
||||
// the second step.
|
||||
if (!visible) {
|
||||
setName(`App ${Math.floor(Math.random() * 1000)}`)
|
||||
reset()
|
||||
}
|
||||
}, [reset, visible])
|
||||
|
||||
@@ -7,13 +7,13 @@ import { useEffect, useState } from 'react'
|
||||
import { Button, Form, IconLock, Input } from 'ui'
|
||||
import { object, string } from 'yup'
|
||||
|
||||
import AlertError from 'components/ui/AlertError'
|
||||
import { GenericSkeletonLoader } from 'components/ui/ShimmeringLoader'
|
||||
import { useMfaChallengeAndVerifyMutation } from 'data/profile/mfa-challenge-and-verify-mutation'
|
||||
import { useMfaListFactorsQuery } from 'data/profile/mfa-list-factors-query'
|
||||
import { useStore } from 'hooks'
|
||||
import { usePushNext } from 'hooks/misc/useAutoAuthRedirect'
|
||||
import { useSignOut } from 'lib/auth'
|
||||
import AlertError from 'components/ui/AlertError'
|
||||
|
||||
const signInSchema = object({
|
||||
code: string().required('MFA Code is required'),
|
||||
@@ -45,8 +45,6 @@ const SignInMfaForm = () => {
|
||||
await router.replace('/sign-in')
|
||||
}
|
||||
|
||||
console.log({ isLoadingFactors, factors })
|
||||
|
||||
useEffect(() => {
|
||||
if (isSuccessFactors) {
|
||||
// if the user wanders into this page and he has no MFA setup, send the user to the next screen
|
||||
|
||||
Reference in new issue
Block a user