From ec6ee6a51aff0fc970eacdd3c42f21858d5bd9eb Mon Sep 17 00:00:00 2001 From: Dani Palou Date: Fri, 7 Sep 2018 15:50:05 +0200 Subject: [PATCH] MOBILE-2567 notifications: Fix tslint warning --- src/addon/notifications/pages/list/list.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/addon/notifications/pages/list/list.ts b/src/addon/notifications/pages/list/list.ts index 241a54e09..07de7da86 100644 --- a/src/addon/notifications/pages/list/list.ts +++ b/src/addon/notifications/pages/list/list.ts @@ -176,6 +176,7 @@ export class AddonNotificationsListPage { // Check if mark all notifications as read is enabled and there are some to read. if (this.notificationsProvider.isMarkAllNotificationsAsReadEnabled()) { this.loadingMarkAllNotificationsAsRead = true; + return this.notificationsProvider.getUnreadNotificationsCount().then((unread) => { this.canMarkAllNotificationsAsRead = unread > 0; this.loadingMarkAllNotificationsAsRead = false;