Skip to content

Commit

Permalink
chore: add function to close notification modal when clicking into PN…
Browse files Browse the repository at this point in the history
…V flow (deriv-com#17399)
  • Loading branch information
suisin-deriv authored Nov 5, 2024
1 parent e3faec9 commit c7cd1df
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/core/src/Stores/notification-store.js
Original file line number Diff line number Diff line change
Expand Up @@ -1114,6 +1114,7 @@ export default class NotificationStore extends BaseStore {
type: 'warning',
action: {
onClick: () => {
if (this.is_notifications_visible) this.toggleNotificationsModal();
WS.verifyEmail(email, 'phone_number_verification');
localStorage.setItem('routes_from_notification_to_pnv', window.location.pathname);
},
Expand Down

0 comments on commit c7cd1df

Please sign in to comment.