mirror of
https://github.com/SomboChea/ui
synced 2026-01-18 00:56:00 +07:00
chore(#223): update stack dev
This commit is contained in:
committed by
Priscila Oliveira
parent
531295a6d0
commit
95f173d29a
@@ -56,7 +56,7 @@ export default class App extends Component<{}, AppProps> {
|
||||
public isUserAlreadyLoggedIn = () => {
|
||||
// checks for token validity
|
||||
const token = storage.getItem('token');
|
||||
const username = storage.getItem('username');
|
||||
const username: string = storage.getItem('username') as string;
|
||||
if (isTokenExpire(token) || isNil(username)) {
|
||||
this.handleLogout();
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user