diff --git a/assets/js/script.js b/assets/js/script.js index aee8a6b..d13ac13 100644 --- a/assets/js/script.js +++ b/assets/js/script.js @@ -283,10 +283,11 @@ function updatePeriodDisplay() { ? "/ month ✦ yearly" : "/ month"; } -document - .getElementById("pricing-period") - .addEventListener("change", updatePeriodDisplay); -updatePeriodDisplay(); // fire on load so yearly bonuses show by default +const pricingPeriod = document.getElementById("pricing-period"); +if (pricingPeriod) { + pricingPeriod.addEventListener("change", updatePeriodDisplay); + updatePeriodDisplay(); // fire on load so yearly bonuses show by default +} const SERVER_WEBHOOK = "https://n8n.derez.ai/webhook/server"; initServerLocations(); // fetch live server availability