Fix login submit (#2849)
parent
b334586c3b
commit
ba9be4e69d
|
@ -160,7 +160,10 @@ export default function Login({
|
|||
<Button
|
||||
className="flex w-full justify-center"
|
||||
type="submit"
|
||||
disabled={form.formState.isSubmitting || (form.formState.isSubmitted && !twoFactorRequired)}>
|
||||
disabled={
|
||||
form.formState.isSubmitting ||
|
||||
(form.formState.isSubmitted && !twoFactorRequired && !errorMessage)
|
||||
}>
|
||||
{twoFactorRequired ? t("submit") : t("sign_in")}
|
||||
</Button>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue