From c0a89c46efbec1a01a014fe6e9dfe32f30d5cac3 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 4 Nov 2016 11:54:05 +0100 Subject: [PATCH] Client: fix handle refresh token --- .../admin/requests/request-stats/request-stats.component.ts | 1 - client/src/app/shared/auth/auth.service.ts | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/client/src/app/admin/requests/request-stats/request-stats.component.ts b/client/src/app/admin/requests/request-stats/request-stats.component.ts index 4b0844574..d20b12199 100644 --- a/client/src/app/admin/requests/request-stats/request-stats.component.ts +++ b/client/src/app/admin/requests/request-stats/request-stats.component.ts @@ -27,7 +27,6 @@ export class RequestStatsComponent implements OnInit, OnDestroy { getStats() { this.requestService.getStats().subscribe( stats => { - console.log(stats); this.stats = stats; this.runInterval(); }, diff --git a/client/src/app/shared/auth/auth.service.ts b/client/src/app/shared/auth/auth.service.ts index a30c79c86..b7e0a44a7 100644 --- a/client/src/app/shared/auth/auth.service.ts +++ b/client/src/app/shared/auth/auth.service.ts @@ -159,8 +159,8 @@ export class AuthService { this.router.navigate(['/login']); return Observable.throw({ - json: '', - text: 'You need to reconnect.' + json: () => '', + text: () => 'You need to reconnect.' }); } -- 2.25.1