Skip to content

Commit

Permalink
clear errors if none
Browse files Browse the repository at this point in the history
  • Loading branch information
Rashmi-278 committed May 24, 2024
1 parent 0666a38 commit 1aad327
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,9 @@ const RegistrationForm = ({ toggleRegScreen, setRegistrationData }) => {
window.scrollTo(0, 0);
return;
}
if (validationErrors.length === 0) {
setErrors(null);
}

const data = fields.map(({ name, value, type }) => ({ name, value, type }));

Expand Down

0 comments on commit 1aad327

Please sign in to comment.