Skip to content

Commit

Permalink
fix: small improvement for disabling the submit button on the setup page
Browse files Browse the repository at this point in the history
  • Loading branch information
LuukBlankenstijn committed Jan 12, 2025
1 parent c0a365c commit 50077a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/auth/ResetPasswordForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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}
>
Expand Down

0 comments on commit 50077a8

Please sign in to comment.