diff --git a/src/Utils/utils.ts b/src/Utils/utils.ts index 3aef5b03d67..847304553a8 100644 --- a/src/Utils/utils.ts +++ b/src/Utils/utils.ts @@ -107,8 +107,8 @@ export const handleSignOut = (forceReload: boolean) => { Object.values(LocalStorageKeys).forEach((key) => localStorage.removeItem(key) ); - navigate("/"); - if (forceReload) window.location.reload(); + if (forceReload) window.location.href = "/"; + else navigate("/"); }; /**