Skip to content
This repository has been archived by the owner on Apr 26, 2020. It is now read-only.

Commit

Permalink
fix: user info logged status
Browse files Browse the repository at this point in the history
Change-Id: I3ef2a81b5a6d103e601da1cdf423f17990184896
  • Loading branch information
myml committed Jan 4, 2019
1 parent 42601fc commit c416d06
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/web/src/app/services/auth.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ export class AuthService {
private userInfo$ = new BehaviorSubject<UserInfo>(null);
info$ = this.userInfo$.pipe(
map(info => {
if (!info || !info.UserID) {
if (!info || !info.UserID || !info.IsLoggedIn) {
return null;
}
return info;
}),
);
logged$ = this.info$.pipe(map(info => info && info.IsLoggedIn));
logged$ = this.info$.pipe(map(Boolean));
// get token
getToken() {
return Channel.exec<string>('account.getToken');
Expand Down

0 comments on commit c416d06

Please sign in to comment.