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