From c7cd1df8a55ad21103285c31a300e63ddda0637f Mon Sep 17 00:00:00 2001 From: Sui Sin <103026762+suisin-deriv@users.noreply.github.com> Date: Tue, 5 Nov 2024 18:51:30 +0800 Subject: [PATCH] chore: add function to close notification modal when clicking into PNV flow (#17399) --- packages/core/src/Stores/notification-store.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/core/src/Stores/notification-store.js b/packages/core/src/Stores/notification-store.js index fe0e49d5b384..cbb17d8c0082 100644 --- a/packages/core/src/Stores/notification-store.js +++ b/packages/core/src/Stores/notification-store.js @@ -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); },