Skip to content

Commit

Permalink
fix: revert input fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mani1911 committed Jan 6, 2024
1 parent fb0400c commit a29670f
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/components/AuthLayout/signup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export const SignUp: React.FC<SignupFormProps> = ({ 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) => {
Expand Down Expand Up @@ -321,10 +321,7 @@ export const SignUp: React.FC<SignupFormProps> = ({ 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);
}}
/>
<FormInput
Expand Down Expand Up @@ -399,7 +396,7 @@ export const SignUp: React.FC<SignupFormProps> = ({ setForm }) => {
{formPage === 7 && (
<>
<FormInput
label="VOUCHER NAME*"
label="VOUCHER NAME"
name="voucherName"
inputType="text"
initialValue={registerForm.userVoucherName}
Expand Down

0 comments on commit a29670f

Please sign in to comment.