mirror of
https://github.com/hexastack/hexabot
synced 2025-06-26 18:27:28 +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);
|
setIsReady(true);
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
useBroadcastChannel("session", () => {
|
useBroadcastChannel("session", (e) => {
|
||||||
|
if (e.data === "logout") {
|
||||||
router.reload();
|
router.reload();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
if (!isReady || isLoading) return <Progress />;
|
if (!isReady || isLoading) return <Progress />;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user