Compare commits

...
1 Commits
Author SHA1 Message Date
MythEclipseandClaude 528a1622d0 fix(auth): prevent AuthInitializer from overwriting Zustand with null user
Co-Authored-By: Claude <noreply@anthropic.com>
2026-06-15 19:04:29 +07:00
+1 -1
View File
@@ -13,7 +13,7 @@ export function AuthInitializer() {
}); });
useEffect(() => { useEffect(() => {
if (query.data) { if (query.data?.user) {
setUser(query.data.user); setUser(query.data.user);
} }
}, [query.data, setUser]); }, [query.data, setUser]);