Client: fix handle refresh token
authorChocobozzz <florian.bigard@gmail.com>
Fri, 4 Nov 2016 10:54:05 +0000 (11:54 +0100)
committerChocobozzz <florian.bigard@gmail.com>
Fri, 4 Nov 2016 10:54:36 +0000 (11:54 +0100)
client/src/app/admin/requests/request-stats/request-stats.component.ts
client/src/app/shared/auth/auth.service.ts

index 4b0844574fd1b238ead2320e65375fab6d794b54..d20b12199137e44450c69e4292700112ff9852ff 100644 (file)
@@ -27,7 +27,6 @@ export class RequestStatsComponent implements OnInit, OnDestroy {
   getStats() {
     this.requestService.getStats().subscribe(
       stats => {
-        console.log(stats);
         this.stats = stats;
         this.runInterval();
       },
index a30c79c8685edafb59aa2bbdc6ba2d64afd17789..b7e0a44a76c8a40e0b8e5e091327d0ee6cfcc111 100644 (file)
@@ -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.'
                         });
                       }