We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f010f7 commit 9ad6d22Copy full SHA for 9ad6d22
src/app/shared/components/my-shared/header/header.ts
@@ -92,7 +92,8 @@ export class HeaderComponent {
92
this.timeExpiresAt =
93
decodeJWT(localStorage.getItem('token') ?? '')?.expiresAt || '';
94
const expiresAt = new Date(this.timeExpiresAt).getTime();
95
- this.isLoggedIn = !isNaN(expiresAt) && Date.now() < expiresAt;
+ // this.isLoggedIn = !isNaN(expiresAt) && Date.now() < expiresAt;
96
+ this.isLoggedIn = !!localStorage.getItem('token');
97
}
98
99
organizations = [
0 commit comments