From 1378c0d343028f3d40d7d795422684ab9e6a1599 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 17 Aug 2021 11:27:47 +0200 Subject: Fix client lint --- client/src/app/menu/notification.component.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'client/src/app/menu') diff --git a/client/src/app/menu/notification.component.ts b/client/src/app/menu/notification.component.ts index b7d9e9abb..ac9c79991 100644 --- a/client/src/app/menu/notification.component.ts +++ b/client/src/app/menu/notification.component.ts @@ -36,14 +36,14 @@ export class NotificationComponent implements OnInit, OnDestroy { ngOnInit () { this.userNotificationService.countUnreadNotifications() - .subscribe( - result => { + .subscribe({ + next: result => { this.unreadNotifications = Math.min(result, 99) // Limit number to 99 this.subscribeToNotifications() }, - err => this.notifier.error(err.message) - ) + error: err => this.notifier.error(err.message) + }) this.routeSub = this.router.events .pipe(filter(event => event instanceof NavigationEnd)) -- cgit v1.2.3