From c0adeec6632128e4cb040cf87e6d43b8484a9896 Mon Sep 17 00:00:00 2001 From: justin Date: Tue, 28 Apr 2026 03:31:12 -0500 Subject: [PATCH] Revert CTA always-rebuild, keep combined text detection for RMD quality The always-rebuild approach caused the CTA to disappear when the observer fired a second time. Reverted to only rebuild on FRN change. Co-Authored-By: Claude Opus 4.6 (1M context) --- site/public/tools/fcc-compliance-check/index.html | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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 = [];