From bc6f886347f676220847461600122cde86edc272 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 6 Jan 2020 15:59:17 +0100 Subject: Fix mark all as read notifications --- .../my-account-notifications/my-account-notifications.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'client/src/app/+my-account/my-account-notifications/my-account-notifications.component.ts') 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 { this.userNotification.markAllAsRead() } - getUnreadNotifications () { - return this.userNotification.notifications.filter(n => n.read === false).length + hasUnreadNotifications () { + return this.userNotification.notifications.filter(n => n.read === false).length !== 0 } } -- cgit v1.2.3