diff --git a/src/pages/login/index.tsx b/src/pages/login/index.tsx index 35b06d4f..5d4f8a41 100644 --- a/src/pages/login/index.tsx +++ b/src/pages/login/index.tsx @@ -23,7 +23,7 @@ const Login = () => { const [waitTime, setWaitTime] = useState(); const { theme } = useTheme(); const [twoFactor, setTwoFactor] = useState(false); - const [verifing, setVerifing] = useState(false); + const [verifying, setVerifying] = useState(false); const [loginInfo, setLoginInfo] = useState(); const handleOk = (values: any) => { @@ -56,7 +56,7 @@ const Login = () => { }; const completeTowFactor = (values: any) => { - setVerifing(true); + setVerifying(true); request .put(`${config.apiPrefix}user/two-factor/login`, { data: { ...loginInfo, code: values.code }, @@ -67,11 +67,11 @@ const Login = () => { } else { checkResponse(data); } - setVerifing(false); + setVerifying(false); }) .catch((error: any) => { console.log(error); - setVerifing(false); + setVerifying(false); }); }; @@ -145,13 +145,13 @@ const Login = () => { ]} hasFeedback > - +