Skip to content

Commit

Permalink
fixed client notifications (#6278)
Browse files Browse the repository at this point in the history
  • Loading branch information
farrah-deriv committed Aug 24, 2022
1 parent f8324dd commit 03040c9
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions packages/core/src/Stores/notification-store.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,18 @@ export default class NotificationStore extends BaseStore {
root_store.client.has_enabled_two_fa,
],
async () => {
if (
root_store.client.is_logged_in &&
Object.keys(root_store.client.account_status).length > 0 &&
Object.keys(root_store.client.landing_companies).length > 0
)
await root_store.modules?.cashier?.general_store?.getP2pCompletedOrders();

if (
!root_store.client.is_logged_in ||
(Object.keys(root_store.client.account_status).length > 0 &&
Object.keys(root_store.client.landing_companies).length > 0)
) {
await root_store.modules?.cashier?.general_store?.getP2pCompletedOrders();

this.removeNotifications();
this.removeAllNotificationMessages();
this.setClientNotifications();
Expand Down

1 comment on commit 03040c9

@vercel
Copy link

@vercel vercel bot commented on 03040c9 Aug 24, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

deriv-app – ./

deriv-app-git-master.binary.sx
binary.sx
deriv-app.vercel.app
deriv-app.binary.sx

Please sign in to comment.