Skip to content

Commit

Permalink
Merge branch 'develop' into user-redirection
Browse files Browse the repository at this point in the history
  • Loading branch information
nihal467 committed Oct 30, 2023
2 parents 4d1aeee + edd6a7e commit 0565623
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/Utils/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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("/");
};

/**
Expand Down

0 comments on commit 0565623

Please sign in to comment.