Disable hCaptcha integration in ContactFormSection

This commit is contained in:
2025-06-02 16:55:08 +02:00
parent e603658fbe
commit 1648e376bf

View File

@@ -35,11 +35,11 @@ const ContactFormSection = () => {
setLoading(true); setLoading(true);
setError(""); setError("");
if (!captchaToken) { // if (!captchaToken) {
setError("Bitte löse das CAPTCHA, um fortzufahren."); // setError("Bitte löse das CAPTCHA, um fortzufahren.");
setLoading(false); // setLoading(false);
return; // return;
} // }
const res = await fetch("/api/contact", { const res = await fetch("/api/contact", {
method: "POST", method: "POST",
@@ -189,11 +189,11 @@ const ContactFormSection = () => {
{/* <HCaptcha sitekey={hCaptchaSiteKey} onVerify={setCaptchaToken}/>*/} {/* <HCaptcha sitekey={hCaptchaSiteKey} onVerify={setCaptchaToken}/>*/}
{/*</motion.div>*/} {/*</motion.div>*/}
{error && ( {/*{error && (*/}
<div className="text-red-600 font-medium pt-2"> {/* <div className="text-red-600 font-medium pt-2">*/}
{error} {/* ❌ {error}*/}
</div> {/* </div>*/}
)} {/*)}*/}
<motion.div <motion.div
className="pt-4 flex justify-end" className="pt-4 flex justify-end"