From eaea8b3ce14de6232c2fc57dd41f125eae2079f1 Mon Sep 17 00:00:00 2001 From: Hiep Le <69354317+hieptl@users.noreply.github.com> Date: Wed, 3 Dec 2025 10:07:01 +0700 Subject: [PATCH] fix(frontend): buying credits does not work on staging (#11873) --- frontend/src/routes/billing.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/frontend/src/routes/billing.tsx b/frontend/src/routes/billing.tsx index c004d93dee..05d23fe276 100644 --- a/frontend/src/routes/billing.tsx +++ b/frontend/src/routes/billing.tsx @@ -30,11 +30,12 @@ function BillingSettingsScreen() { } displaySuccessToast(t(I18nKey.PAYMENT$SUCCESS)); + + setSearchParams({}); } else if (checkoutStatus === "cancel") { displayErrorToast(t(I18nKey.PAYMENT$CANCELLED)); + setSearchParams({}); } - - setSearchParams({}); }, [checkoutStatus, searchParams, setSearchParams, t, trackCreditsPurchased]); return ;