Skip to content

Commit

Permalink
feat: 🐛 prevent misfiring of open toas banner
Browse files Browse the repository at this point in the history
  • Loading branch information
likhith-deriv committed Mar 29, 2023
1 parent fefe3f8 commit e3d1ca6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/core/src/Stores/notification-store.js
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ export default class NotificationStore extends BaseStore {
if (malta_account && is_financial_information_incomplete) {
this.addNotificationMessage(this.client_notifications.need_fa);
} else {
this.removeNotificationByKey({ key: this.client_notifications.need_fa, should_show_again: false });
this.removeNotificationByKey({ key: this.client_notifications.need_fa });
}

if (is_poi_dob_mismatch) {
Expand Down Expand Up @@ -1423,6 +1423,7 @@ export default class NotificationStore extends BaseStore {
text: localize('Start assessment'),
},
should_show_again: true,
closeOnClick: notification_obj => this.markNotificationMessage({ key: notification_obj.key }),
},
svg_needs_poi_poa: {
key: 'svg_needs_poi_poa',
Expand Down

0 comments on commit e3d1ca6

Please sign in to comment.