From 9c7f741b6c6c4c85c0ae2ec44c18f4433ba08a6d Mon Sep 17 00:00:00 2001 From: Taysuisin Date: Mon, 20 Mar 2023 11:29:11 +0800 Subject: [PATCH] chore: remove toast and push notification for poi and poa after first submittion --- 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 31bc1c2d978e..a46bbf347fd8 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(