diff --git a/src/scripts/contact-form.js b/src/scripts/contact-form.js index b315f9b..29490ef 100644 --- a/src/scripts/contact-form.js +++ b/src/scripts/contact-form.js @@ -109,6 +109,7 @@ form.addEventListener("submit", function(event) { hasErrors = true; } + const hCaptchaResponse = hcaptcha.getResponse(); // Check for hCaptcha token if (!hCaptchaResponse) { showMessage("Please complete the CAPTCHA.", true);