Client: fix handle refresh token

This commit is contained in:
Chocobozzz 2016-11-04 11:54:05 +01:00
parent 371fa0933a
commit c0a89c46ef
2 changed files with 2 additions and 3 deletions

View 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();
},

View 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.'
});
}