Fix Unexpected use of location error
This commit is contained in:
parent
e26a154518
commit
1cb6610b09
|
@ -66,7 +66,7 @@ export const logoutUser = async (): Promise<void> => {
|
|||
console.error(e);
|
||||
}
|
||||
localStorage.removeItem("token");
|
||||
location.reload();
|
||||
window.location.reload();
|
||||
};
|
||||
|
||||
export const isLoggedIn = (): boolean => !!getJsonWebToken();
|
||||
|
|
Loading…
Reference in New Issue