From dd8e551814302e851e256746a60444af9d030092 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C5=ABta?= Date: Tue, 4 Jun 2024 16:37:22 +0300 Subject: [PATCH] Fixed again --- src/RegistrationForm.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } };