From ca28f019685bb7e2c75e08507001b81323405fbd Mon Sep 17 00:00:00 2001 From: Thatsaphorn Atchariyaphap Date: Sun, 1 Jun 2025 11:58:12 +0200 Subject: [PATCH] Add debug log for hCaptcha site key in ContactFormSection --- frontend/components/Contact/Section/ContactFormSection.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/components/Contact/Section/ContactFormSection.tsx b/frontend/components/Contact/Section/ContactFormSection.tsx index 788eab5..ca9011d 100644 --- a/frontend/components/Contact/Section/ContactFormSection.tsx +++ b/frontend/components/Contact/Section/ContactFormSection.tsx @@ -24,6 +24,8 @@ const ContactFormSection = () => { const hCaptchaSiteKey: string = process.env.NEXT_PUBLIC_HCAPTCHA_SITE_KEY ?? "null"; + console.log(hCaptchaSiteKey); + const handleChange = (e: React.ChangeEvent) => { setForm({...form, [e.target.name]: e.target.value}); }; @@ -39,7 +41,6 @@ const ContactFormSection = () => { return; } - const res = await fetch("/api/contact", { method: "POST", headers: {"Content-Type": "application/json"},