diff --git a/site/public/tools/fcc-compliance-check/index.html b/site/public/tools/fcc-compliance-check/index.html index 14b6f76..52ba720 100644 --- a/site/public/tools/fcc-compliance-check/index.html +++ b/site/public/tools/fcc-compliance-check/index.html @@ -409,12 +409,11 @@ Send reset link // Remediation CTA — rebuild if FRN changed (user searched new company) var currentFrn = (document.getElementById("entity-frn").textContent || "").replace(/\D/g, ""); var existingCta = document.getElementById("pw-remediation-cta"); - if (existingCta) { - // Remove CTA if FRN changed or if we need to rebuild + if (existingCta && existingCta.dataset.frn && existingCta.dataset.frn !== currentFrn) { existingCta.remove(); existingCta = null; } - { + if (!existingCta) { var actionCards = checks.querySelectorAll(":scope > .bg-red-50, :scope > .bg-amber-50"); if (actionCards.length > 0) { var services = [];