diff --git a/components/shared/Newsletter.tsx b/components/shared/Newsletter.tsx index b4d4386..d7e3651 100644 --- a/components/shared/Newsletter.tsx +++ b/components/shared/Newsletter.tsx @@ -19,14 +19,12 @@ const Newsletter = () => { "idle" | "loading" | "success" | "already" | "error" >("idle"); const [input, setInput] = useState(""); - const [captchaToken, setCaptchaToken] = useState(null); const [showCaptcha, setShowCaptcha] = useState(false); const [isSubmitting, setIsSubmitting] = useState(false); // Added this line const buttonRef = useRef(null); const hcaptchaRef = useRef(null); const handleCaptcha = async (token: string) => { - setCaptchaToken(token); setShowCaptcha(false); await handleSubmit(token); };