From 219507ce74041673ba666e9210602923b9109bf3 Mon Sep 17 00:00:00 2001 From: justin Date: Tue, 2 Jun 2026 13:08:47 -0500 Subject: [PATCH] intake: fix hoisted payment-step null error and success nav cleanup - Guard PaymentStep DOM bindings so its hoisted script no longer throws on pages without a payment step. - Remove the correct wizard nav element on successful intake submit (pw-wizard-nav, not the nonexistent pw-wizard-footer). --- site/src/components/intake/Wizard.astro | 2 +- .../components/intake/steps/PaymentStep.astro | 68 ++++++++++--------- 2 files changed, 37 insertions(+), 33 deletions(-) diff --git a/site/src/components/intake/Wizard.astro b/site/src/components/intake/Wizard.astro index 6730e5f..3966325 100644 --- a/site/src/components/intake/Wizard.astro +++ b/site/src/components/intake/Wizard.astro @@ -676,7 +676,7 @@ const STEP_LABELS: Record = { `; document.querySelector(".pw-wizard-stepbar")?.remove(); - document.querySelector(".pw-wizard-footer")?.remove(); + document.querySelector(".pw-wizard-nav")?.remove(); } else { const err = await saveResp.json().catch(() => ({})); alert(err.error || "Failed to submit. Please try again."); diff --git a/site/src/components/intake/steps/PaymentStep.astro b/site/src/components/intake/steps/PaymentStep.astro index 64ce924..a8b607e 100644 --- a/site/src/components/intake/steps/PaymentStep.astro +++ b/site/src/components/intake/steps/PaymentStep.astro @@ -48,37 +48,41 @@ const meta = SERVICE_META[service_slug];