replace null check currentUser
parent
b955db8fe1
commit
1c88cc80af
|
@ -45,7 +45,10 @@ export class LoginService {
|
|||
}
|
||||
|
||||
isLoggedIn() {
|
||||
return localStorage.getItem('currentUser') != null;
|
||||
if (localStorage.getItem('currentUser')) {
|
||||
return true;
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
hasPermission(level: number) {
|
||||
|
|
Loading…
Reference in New Issue