diff --git a/src/pages/gallery/index.tsx b/src/pages/gallery/index.tsx index 26da721ac..8eb2eec00 100644 --- a/src/pages/gallery/index.tsx +++ b/src/pages/gallery/index.tsx @@ -285,8 +285,8 @@ export default function Gallery() { router.replace({ pathname: PAGES.GALLERY, query: { - ...rest, ...(collectionQuery ? { collection: collectionQuery } : {}), + ...rest, }, }); }, [activeCollection]); diff --git a/src/utils/billingUtil.ts b/src/utils/billingUtil.ts index 4a62132e9..41b5c007d 100644 --- a/src/utils/billingUtil.ts +++ b/src/utils/billingUtil.ts @@ -192,7 +192,12 @@ export async function checkSubscriptionPurchase( router: NextRouter, setLoading: SetLoading ) { - const { sessionId, status, reason, ...rest } = router.query ?? {}; + const { + session_id: sessionId, + status, + reason, + ...rest + } = router.query ?? {}; try { if (status === RESPONSE_STATUS.fail) { handleFailureReason(reason as string, setDialogMessage, setLoading);