Sign in button should be changed or disabled after click #2654 (#2749)

Co-authored-by: gitstart <gitstart@users.noreply.github.com>
pull/2723/head^2
GitStart 2022-05-14 13:38:56 +00:00 committed by GitHub
parent 2bb6f33112
commit 93bd4ed79e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -159,7 +159,7 @@ export default function Login({
<Button <Button
className="flex w-full justify-center" className="flex w-full justify-center"
type="submit" type="submit"
disabled={form.formState.isSubmitting}> disabled={form.formState.isSubmitting || form.formState.isSubmitted}>
{twoFactorRequired ? t("submit") : t("sign_in")} {twoFactorRequired ? t("submit") : t("sign_in")}
</Button> </Button>
</div> </div>