Skip to content

Commit

Permalink
check confirm email field has length before validating
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewHEguardian committed Jan 31, 2025
1 parent e14e34c commit d748578
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export function PersonalDetailsFields({
}}
onBlur={(event) => {
event.target.checkValidity();
if (email.length > 0) {
if (confirmedEmail.length > 0) {
confirmEmailRef.current?.querySelector('input')?.checkValidity();
}
}}
Expand Down

0 comments on commit d748578

Please sign in to comment.