Add debug log for hCaptcha site key in ContactFormSection
This commit is contained in:
@@ -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<HTMLInputElement | HTMLTextAreaElement>) => {
|
||||
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"},
|
||||
|
||||
Reference in New Issue
Block a user