diff --git a/src/shared/services/UserService.ts b/src/shared/services/UserService.ts index 419490af..72066ad4 100644 --- a/src/shared/services/UserService.ts +++ b/src/shared/services/UserService.ts @@ -49,7 +49,7 @@ export class UserService { } private setClaims(jwt: string) { - this.claims = jwt_decode(jwt) as Claims; + this.claims = jwt_decode(jwt); this.jwtSub.next(jwt); } diff --git a/src/shared/services/WebSocketService.ts b/src/shared/services/WebSocketService.ts index 0baf9b62..53af6d19 100644 --- a/src/shared/services/WebSocketService.ts +++ b/src/shared/services/WebSocketService.ts @@ -348,7 +348,7 @@ export class WebSocketService { } public markAllAsRead() { - let form: MarkAllAsReadForm; + let form: MarkAllAsReadForm = { auth: null }; this.setAuth(form); this.ws.send(this.client.markAllAsRead(form)); }