From 50077a8ccd7406257844ba02e2c98c2e7ee6d606 Mon Sep 17 00:00:00 2001 From: Luuk Blankenstijn <luukblankenstijn@gmail.com> Date: Sun, 12 Jan 2025 12:51:58 +0100 Subject: [PATCH] fix: small improvement for disabling the submit button on the setup page --- src/components/auth/ResetPasswordForm.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/auth/ResetPasswordForm.tsx b/src/components/auth/ResetPasswordForm.tsx index 17e8df9..459ab2b 100644 --- a/src/components/auth/ResetPasswordForm.tsx +++ b/src/components/auth/ResetPasswordForm.tsx @@ -62,7 +62,7 @@ function ResetPasswordForm(props: Props) { primary size="large" type="submit" - disabled={validator.isEmpty(passwordRepeat) || !validator.equals(passwordRepeat, password) || !validator.isStrongPassword(password)} + disabled={!passwordIsValid} onClick={() => props.resetPassword(password, passwordRepeat, props.token)} loading={props.status === ResourceStatus.FETCHING} >