fix: apply feedback update

This commit is contained in:
yassinedorbozgithub 2025-01-29 11:54:19 +01:00
parent 1492b7cdeb
commit 34e10fa8aa

View File

@ -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 />;