fix change

This commit is contained in:
Abhinav 2021-11-22 22:32:30 +05:30
parent 97a3eef465
commit 4bdbc36b25
2 changed files with 7 additions and 2 deletions

View file

@ -285,8 +285,8 @@ export default function Gallery() {
router.replace({
pathname: PAGES.GALLERY,
query: {
...rest,
...(collectionQuery ? { collection: collectionQuery } : {}),
...rest,
},
});
}, [activeCollection]);

View file

@ -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);