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

View file

@ -66,7 +66,7 @@ export const logoutUser = async (): Promise<void> => {
console.error(e); console.error(e);
} }
localStorage.removeItem("token"); localStorage.removeItem("token");
location.reload(); window.location.reload();
}; };
export const isLoggedIn = (): boolean => !!getJsonWebToken(); export const isLoggedIn = (): boolean => !!getJsonWebToken();