Skip to content

Commit

Permalink
빌드 오류 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
ipcgrdn committed Nov 27, 2024
1 parent e1a5f24 commit 13343ce
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/provider/userProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,16 @@ export function UserProvider({ children }: { children: React.ReactNode }) {
} finally {
setIsLoading(false);
}
}, [setIsLoggedIn]);
}, []);

useEffect(() => {
if (!isLoggedIn) {
setUser(null);
setIsLoading(false);
return;
}
}, [isLoggedIn]);
fetchUser();
}, [isLoggedIn, fetchUser]);

const logout = useCallback(async () => {
try {
Expand Down

0 comments on commit 13343ce

Please sign in to comment.