diff --git a/site/src/components/intake/Wizard.astro b/site/src/components/intake/Wizard.astro index 2b5547a..4cb2b4a 100644 --- a/site/src/components/intake/Wizard.astro +++ b/site/src/components/intake/Wizard.astro @@ -366,6 +366,33 @@ const STEP_LABELS: Record = { if (order.intake_data) { state.intake_data = { ...state.intake_data, ...order.intake_data }; } + + // If intake was already completed and user isn't revising, show "completed" screen + if (order.intake_data_validated && !urlParams.has("revise")) { + const body = document.querySelector(".pw-wizard-body") as HTMLElement; + const footer = document.querySelector(".pw-wizard-nav") as HTMLElement; + body.innerHTML = ` +
+
+ +
+

Intake Already Completed

+

You've already submitted your information for this order. We're processing your filing now.

+
+ Go to Portal + +
+
+ `; + if (footer) footer.hidden = true; + document.getElementById("pw-revise-btn")?.addEventListener("click", () => { + sessionStorage.removeItem(\`pw-intake-\${slug}\`); + const url = new URL(window.location.href); + url.searchParams.set("revise", "1"); + window.location.href = url.toString(); + }); + return; // Don't render steps + } } } catch {} }