From 31ba09b2dad25dc03dfa41996fc696bf3b82139f Mon Sep 17 00:00:00 2001 From: Darnell Andries Date: Tue, 16 Jul 2024 09:23:51 -0700 Subject: [PATCH] Do not clear order URL parameters --- src/hooks/use-subscribed-status.ts | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/hooks/use-subscribed-status.ts b/src/hooks/use-subscribed-status.ts index eb2482b35..05941446a 100644 --- a/src/hooks/use-subscribed-status.ts +++ b/src/hooks/use-subscribed-status.ts @@ -28,15 +28,6 @@ async function parseOrderFromQueryParams(): Promise { let orderId: string | null | undefined; if (order) { - // Strip order from URL - params.delete("intent"); - params.delete("order"); - const paramString = params.size ? `?${params}` : ""; - window.history.replaceState( - null, - "", - `${window.location.pathname}${paramString}${window.location.hash}`, - ); try { const o = JSON.parse(atob(order)); const exp = o?.recovery_expiration;