fix: corrected privacyAccepted value assignment in contact-form.js
This commit is contained in:
@@ -62,7 +62,7 @@ form.addEventListener("submit", function(event) {
|
|||||||
const phone = document.getElementById("phone").value.trim();
|
const phone = document.getElementById("phone").value.trim();
|
||||||
const contactMethod = document.querySelector('input[name="contact-method"]:checked')?.value;
|
const contactMethod = document.querySelector('input[name="contact-method"]:checked')?.value;
|
||||||
const message = document.getElementById("message").value.trim();
|
const message = document.getElementById("message").value.trim();
|
||||||
const privacyAccepted = document.getElementById("privacy").checked;
|
const privacyAccepted = document.getElementById("privacy-policy").checked;
|
||||||
|
|
||||||
let hasErrors = false;
|
let hasErrors = false;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user