diff --git a/src/scripts/contact-form.js b/src/scripts/contact-form.js index bf011e7..e7b781d 100644 --- a/src/scripts/contact-form.js +++ b/src/scripts/contact-form.js @@ -62,7 +62,7 @@ form.addEventListener("submit", function(event) { const phone = document.getElementById("phone").value.trim(); const contactMethod = document.querySelector('input[name="contact-method"]:checked')?.value; const message = document.getElementById("message").value.trim(); - const privacyAccepted = document.getElementById("privacy").checked; + const privacyAccepted = document.getElementById("privacy-policy").checked; let hasErrors = false;