Skip to content

Commit

Permalink
fix: fix notification sentry issue (#3132)
Browse files Browse the repository at this point in the history
  • Loading branch information
suyashpatil78 authored Jul 7, 2024
1 parent 76c884b commit dbe7c8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/fyle/notifications/notifications.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
});
}
Expand Down

0 comments on commit dbe7c8f

Please sign in to comment.