Skip to content

Commit

Permalink
Do not clear order URL parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
DJAndries committed Jul 16, 2024
1 parent a952390 commit 31ba09b
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/hooks/use-subscribed-status.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,6 @@ async function parseOrderFromQueryParams(): Promise<void> {
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;
Expand Down

0 comments on commit 31ba09b

Please sign in to comment.