diff --git a/package-lock.json b/package-lock.json index 80e47519f87..6098fb0ba36 100644 --- a/package-lock.json +++ b/package-lock.json @@ -23498,4 +23498,4 @@ } } } -} +} \ No newline at end of file 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("/"); }; /**