From edd6a7ec55252264b3c4f56eba43ac6f34f421ba Mon Sep 17 00:00:00 2001 From: Shyam Prakash <106866225+shyamprakash123@users.noreply.github.com> Date: Mon, 30 Oct 2023 14:25:20 +0530 Subject: [PATCH] FixedSignoutFlow#6504 (#6509) --- src/Utils/utils.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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("/"); }; /**