website refactoring #7
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user