Skip to content

Commit

Permalink
Fixed again
Browse files Browse the repository at this point in the history
  • Loading branch information
ruta-is-coding committed Jun 4, 2024
1 parent af6e1a9 commit dd8e551
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/RegistrationForm.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ const RegistrationForm = () => {
const formErrors = validate();
setErrors(formErrors);
if (Object.keys(formErrors).length === 0) {
// setAge(calculateAge(formData.dob));
setAge(calculateAge(formData.dob));
setSubmitted(true);
}
};
Expand Down

0 comments on commit dd8e551

Please sign in to comment.