Skip to content

Hasan/86c4127ah/POI and POA rejected notification #18626

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
11 changes: 8 additions & 3 deletions packages/core/src/Stores/notification-store.js
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ export default class NotificationStore extends BaseStore {
this.addNotificationMessage(this.client_notifications.poi_verified);
} else if (
!['none', 'pending', 'expired'].includes(identity.status) ||
status.includes('allow_poi_resubmission')
(status.includes('allow_poi_resubmission') && identity.status !== 'pending')
) {
this.addNotificationMessage(this.client_notifications.poi_failed);
}
Expand All @@ -256,7 +256,7 @@ export default class NotificationStore extends BaseStore {
this.addNotificationMessage(this.client_notifications.poa_rejected_for_mt5);
} else if (
!['none', 'pending', 'expired'].includes(document.status) ||
status.includes('allow_poa_resubmission')
(status.includes('allow_poa_resubmission') && document.status !== 'pending')
) {
this.addNotificationMessage(this.client_notifications.poa_failed);
}
Expand Down Expand Up @@ -611,9 +611,14 @@ export default class NotificationStore extends BaseStore {
}
}

const exclude_statuses = ['pending', 'none', 'verified'];

if (has_tusdt_account) this.addNotificationMessage(this.client_notifications.has_tusdt_account);
if (mt5_withdrawal_locked) this.addNotificationMessage(this.client_notifications.mt5_withdrawal_locked);
if (document_needs_action) this.addNotificationMessage(this.client_notifications.document_needs_action);
if (document_needs_action &&
(!exclude_statuses.includes(document.status) || !exclude_statuses.includes(identity.status))) {
this.addNotificationMessage(this.client_notifications.document_needs_action)
};
if (is_p2p_enabled) {
this.addNotificationMessage(this.client_notifications.dp2p);

Expand Down
Loading