From a3aa5a808bf3527d483d0c8a9046aca3fcd11de7 Mon Sep 17 00:00:00 2001 From: Sui Sin <103026762+suisin-deriv@users.noreply.github.com> Date: Thu, 30 Mar 2023 14:47:44 +0800 Subject: [PATCH] chore: remove toast and push notification for poi and poa after first submittion (#7959) Co-authored-by: Jim Daniels Wasswa <104334373+jim-deriv@users.noreply.github.com> --- packages/core/src/Stores/notification-store.js | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/packages/core/src/Stores/notification-store.js b/packages/core/src/Stores/notification-store.js index 7035f64e6114..07eca9ec1a4e 100644 --- a/packages/core/src/Stores/notification-store.js +++ b/packages/core/src/Stores/notification-store.js @@ -409,16 +409,12 @@ export default class NotificationStore extends BaseStore { const svg_needs_poi_poa = cr_account && status.includes('allow_document_upload') && - (identity?.status === 'none' || identity?.status === 'rejected') && - (document?.status === 'none' || document?.status === 'rejected'); + identity?.status === 'none' && + document?.status === 'none'; const svg_needs_poa = - cr_account && - status.includes('allow_document_upload') && - (document?.status === 'none' || document?.status === 'rejected'); + cr_account && status.includes('allow_document_upload') && document?.status === 'none'; const svg_needs_poi = - cr_account && - status.includes('allow_document_upload') && - (identity?.status === 'none' || identity?.status === 'rejected'); + cr_account && status.includes('allow_document_upload') && identity?.status === 'none'; const svg_poi_expired = cr_account && identity?.status === 'expired'; this.addVerificationNotifications(