From 4bdbc36b25a3d9c2030d4b192424426ffae28ffb Mon Sep 17 00:00:00 2001 From: Abhinav Date: Mon, 22 Nov 2021 22:32:30 +0530 Subject: [PATCH] fix change --- src/pages/gallery/index.tsx | 2 +- src/utils/billingUtil.ts | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) 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);