Fix Unexpected use of location error

This commit is contained in:
Christoph Lienhard 2021-04-21 20:25:44 +02:00
parent e26a154518
commit 1cb6610b09
Signed by: christoph.lienhard
GPG Key ID: 6B98870DDC270884
1 changed files with 1 additions and 1 deletions

View File

@ -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();