From dbe7c8fa10361c3ab46a391d5ebd6a5f775f6a3e Mon Sep 17 00:00:00 2001 From: Suyash Patil <127177049+suyashpatil78@users.noreply.github.com> Date: Sun, 7 Jul 2024 17:26:48 +0530 Subject: [PATCH] fix: fix notification sentry issue (#3132) --- src/app/fyle/notifications/notifications.page.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/fyle/notifications/notifications.page.ts b/src/app/fyle/notifications/notifications.page.ts index 16880ea3e8..77ad6ba9da 100644 --- a/src/app/fyle/notifications/notifications.page.ts +++ b/src/app/fyle/notifications/notifications.page.ts @@ -169,7 +169,7 @@ export class NotificationsPage implements OnInit { map((setting) => { if (setting.admin_email_settings.unsubscribed_events.length) { this.notificationEvents.events = this.notificationEvents.events.filter((notificationEvent) => { - const emailEvents = this.orgSettings.admin_email_settings.unsubscribed_events as string[]; + const emailEvents = setting.admin_email_settings.unsubscribed_events as string[]; return emailEvents.indexOf(notificationEvent.eventType.toUpperCase()) === -1; }); }