From b8ce4cc15e99159c0fe59be849e896dd4e79285a Mon Sep 17 00:00:00 2001 From: oriofir <97814056+oriofir@users.noreply.github.com> Date: Mon, 29 Aug 2022 15:14:36 -0700 Subject: [PATCH] fixed error for captcha --- src/components/sections/contact/form/index.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/sections/contact/form/index.tsx b/src/components/sections/contact/form/index.tsx index abbe48a..951da21 100644 --- a/src/components/sections/contact/form/index.tsx +++ b/src/components/sections/contact/form/index.tsx @@ -40,7 +40,7 @@ const CustomForm = ({ data }: FormProps) => { const [errorMsg, setErrorMsg] = useState('') const [isFormSent, setIsFormSent] = useState(false) const [isSending, setIsSending] = useState(false) - const reRef = useRef() + // const reRef = useRef() const handleSubmit = async (e: any) => { e.preventDefault() @@ -61,7 +61,7 @@ const CustomForm = ({ data }: FormProps) => { inquiry: selectedOption.value } - const token = await reRef.current.executeAsync() + // const token = await reRef.current.executeAsync() await fetch(`${process.env.NEXT_PUBLIC_API}/api/contact`, { method: 'POST', @@ -127,11 +127,11 @@ const CustomForm = ({ data }: FormProps) => { onChange={(e) => setText(e.target.value)} > - + /> */}