diff --git a/src/RegistrationForm.jsx b/src/RegistrationForm.jsx index ec11300..eac3f65 100644 --- a/src/RegistrationForm.jsx +++ b/src/RegistrationForm.jsx @@ -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); } };