diff --git a/src/components/TwoFactor/VerifyForm.tsx b/src/components/TwoFactor/VerifyForm.tsx index c0d662c8e..f560a286a 100644 --- a/src/components/TwoFactor/VerifyForm.tsx +++ b/src/components/TwoFactor/VerifyForm.tsx @@ -50,38 +50,43 @@ export default function VerifyTwoFactor(props: Props) { validateOnBlur={false} onSubmit={submitForm}> {({ values, errors, handleChange, handleSubmit, submitForm }) => ( -
- - {constants.ENTER_TWO_FACTOR_OTP} - - - + + + {constants.ENTER_TWO_FACTOR_OTP} + + + + {errors.otp && ( + + + {constants.INCORRECT_CODE} + + + )} + + - {errors.otp && ( - - - {constants.INCORRECT_CODE} - - - )} - - - + + )} ); diff --git a/src/pages/two-factor/verify/index.tsx b/src/pages/two-factor/verify/index.tsx index 713e574e4..d2d284206 100644 --- a/src/pages/two-factor/verify/index.tsx +++ b/src/pages/two-factor/verify/index.tsx @@ -55,7 +55,7 @@ export default function Home() { }; return ( - + {constants.TWO_FACTOR}