mirror of
https://github.com/hexastack/hexabot
synced 2025-02-23 04:48:51 +00:00
fix: apply feedback update
This commit is contained in:
parent
1492b7cdeb
commit
34e10fa8aa
@ -108,8 +108,10 @@ export const AuthProvider = ({ children }: AuthProviderProps): JSX.Element => {
|
||||
setIsReady(true);
|
||||
}, []);
|
||||
|
||||
useBroadcastChannel("session", () => {
|
||||
router.reload();
|
||||
useBroadcastChannel("session", (e) => {
|
||||
if (e.data === "logout") {
|
||||
router.reload();
|
||||
}
|
||||
});
|
||||
|
||||
if (!isReady || isLoading) return <Progress />;
|
||||
|
Loading…
Reference in New Issue
Block a user