Skip to content

Commit

Permalink
fix: fix for delegatee notification visibility (#3189)
Browse files Browse the repository at this point in the history
  • Loading branch information
harshal015 committed Aug 28, 2024
1 parent 9551aba commit 257604b
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 @@ -283,7 +283,7 @@ export class NotificationsPage implements OnInit {

this.isDelegateePresent$ = from(this.authService.getEou()).pipe(
switchMap((res) => this.employeesService.getByParams({ user_id: `eq.${res.us.id}` })),
map((employee) => employee?.count > 0)
map((employee) => employee?.data[0]?.delegatees?.length > 0)
);

this.orgSettings$ = this.orgSettingsService.get();
Expand Down

0 comments on commit 257604b

Please sign in to comment.