fix(auth): prevent AuthInitializer from overwriting Zustand with null user

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
MythEclipse
2026-06-15 19:04:29 +07:00
co-authored by Claude
parent 51a4cb9ed2
commit 528a1622d0
+1 -1
View File
@@ -13,7 +13,7 @@ export function AuthInitializer() {
});
useEffect(() => {
if (query.data) {
if (query.data?.user) {
setUser(query.data.user);
}
}, [query.data, setUser]);