diff options
Diffstat (limited to 'client/src/app/+my-account/my-account-notifications/my-account-notifications.component.ts')
-rw-r--r-- | client/src/app/+my-account/my-account-notifications/my-account-notifications.component.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/client/src/app/+my-account/my-account-notifications/my-account-notifications.component.ts b/client/src/app/+my-account/my-account-notifications/my-account-notifications.component.ts index 156e7713d..a50cb0fb9 100644 --- a/client/src/app/+my-account/my-account-notifications/my-account-notifications.component.ts +++ b/client/src/app/+my-account/my-account-notifications/my-account-notifications.component.ts | |||
@@ -12,7 +12,7 @@ export class MyAccountNotificationsComponent { | |||
12 | this.userNotification.markAllAsRead() | 12 | this.userNotification.markAllAsRead() |
13 | } | 13 | } |
14 | 14 | ||
15 | getUnreadNotifications () { | 15 | hasUnreadNotifications () { |
16 | return this.userNotification.notifications.filter(n => n.read === false).length | 16 | return this.userNotification.notifications.filter(n => n.read === false).length !== 0 |
17 | } | 17 | } |
18 | } | 18 | } |