From a3cacf7a6a4549a0b3ce8360a9c52c6081c7dbe2 Mon Sep 17 00:00:00 2001 From: priyanshuvish Date: Thu, 24 Jul 2025 19:35:45 +0530 Subject: [PATCH] test recap --- pages/StartAProject.tsx | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/pages/StartAProject.tsx b/pages/StartAProject.tsx index 4948fed..f3ab164 100644 --- a/pages/StartAProject.tsx +++ b/pages/StartAProject.tsx @@ -142,6 +142,7 @@ const ProjectFormSection = () => { timeline: "", ndaRequired: false, agreeTerms: false, + recaptcha: "", }); const [errors, setErrors] = useState>({}); @@ -212,6 +213,7 @@ const ProjectFormSection = () => { const handleRecaptchaVerify = (token: string) => { setRecaptchaToken(token); setIsRecaptchaVerified(true); + setFormData((prev) => ({ ...prev, recaptcha: token })); }; const handleSubmit = async (e: React.FormEvent) => { @@ -267,6 +269,7 @@ const ProjectFormSection = () => { timeline: "", ndaRequired: false, agreeTerms: false, + recaptcha: "", }); setAttachedFiles([]); @@ -740,6 +743,13 @@ const ProjectFormSection = () => { Verification successful )} + + {errors.recaptcha && ( +

+ {errors.recaptcha} +

+ )} + @@ -763,11 +773,6 @@ const ProjectFormSection = () => { - {errors.recaptcha && ( -

- {errors.recaptcha} -

- )} {(!formData.agreeTerms || !isRecaptchaVerified) && (