From 2dd1862b532b3d35fe66e65f15fba048294f9b7d Mon Sep 17 00:00:00 2001 From: vyshnav Date: Mon, 25 Nov 2024 18:00:50 +0530 Subject: [PATCH] enbaled name field --- src/components/common/registration-form.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/common/registration-form.tsx b/src/components/common/registration-form.tsx index 4601fc4..c3e49dc 100644 --- a/src/components/common/registration-form.tsx +++ b/src/components/common/registration-form.tsx @@ -86,7 +86,7 @@ export default function RegistrationForm() { resolver: zodResolver(baseSchema), defaultValues: { designation: getSjecMemberType(session?.user.email!), - name: session?.user.name!, + name:session?.user.name!, email: session?.user.email!, phone: "", entityName: "", @@ -249,7 +249,7 @@ export default function RegistrationForm() { const handleNext = async () => { let isValid = false; if (step === 1) { - isValid = await form.trigger(["designation", "foodPreference"]); + isValid = await form.trigger(["designation", "foodPreference","name"]); } else if (step === 2) { const designation = form.getValues("designation"); if (designation === "student") { @@ -314,9 +314,9 @@ export default function RegistrationForm() { +