From c349bbb83c81e8be1dbe7f7930fd294e16893f09 Mon Sep 17 00:00:00 2001 From: Manikandan S <97613486+mani1911@users.noreply.github.com> Date: Sun, 7 Jan 2024 18:32:32 +0530 Subject: [PATCH] fix: revert input fix (#29) Co-authored-by: mani1911 --- src/components/AuthLayout/signup.tsx | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/components/AuthLayout/signup.tsx b/src/components/AuthLayout/signup.tsx index d68c5d2..c8a73d0 100644 --- a/src/components/AuthLayout/signup.tsx +++ b/src/components/AuthLayout/signup.tsx @@ -51,7 +51,7 @@ export const SignUp: React.FC = ({ setForm }) => { userVoucherName: '', }); - const handleFormFields = (field: string, value: string | null | number): void => { + const handleFormFields = (field: string, value: string | null): void => { setRegisterForm(form => ({ ...form, [field]: value })); }; const handleCaptchaSubmission = (token: string | null) => { @@ -321,10 +321,7 @@ export const SignUp: React.FC = ({ setForm }) => { wrapperClassName={styles.signupFields} initialValue={registerForm.userYear} onChange={e => { - handleFormFields( - 'userYear', - e.target.value.length === 0 ? 0 : parseInt(e.target.value), - ); + handleFormFields('userYear', e.target.value); }} /> = ({ setForm }) => { {formPage === 7 && ( <>