fix change
This commit is contained in:
parent
97a3eef465
commit
4bdbc36b25
|
@ -285,8 +285,8 @@ export default function Gallery() {
|
|||
router.replace({
|
||||
pathname: PAGES.GALLERY,
|
||||
query: {
|
||||
...rest,
|
||||
...(collectionQuery ? { collection: collectionQuery } : {}),
|
||||
...rest,
|
||||
},
|
||||
});
|
||||
}, [activeCollection]);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue