Skip to content

Commit

Permalink
fix: use location.href instaed of location.origin because of wrong re…
Browse files Browse the repository at this point in the history
…fresh page on payment
  • Loading branch information
darkoatanasovski committed Apr 3, 2023
1 parent 8841940 commit 446420d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/stores/NotificationsController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const subscribeToNotifications = async (uuid: string = '') => {
break;
case NotificationsTypes.ACCESS_GRANTED:
await reloadActiveSubscription();
window.location.href = addQueryParams(window.location.origin, { u: 'welcome' });
window.location.href = addQueryParams(window.location.href, { u: 'welcome' });
break;
case NotificationsTypes.ACCESS_REVOKED:
await reloadActiveSubscription();
Expand Down

0 comments on commit 446420d

Please sign in to comment.