Skip to content

Commit 218a8cc

Browse files
committed
fix: 유저 정보 fetch 실패 시 로딩 무한 루프 방지
1 parent c73dcc8 commit 218a8cc

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

src/AuthProvider.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,8 @@ export const AuthProvider = ({ children }: AuthLayoutProps) => {
1717
setIsLoading(false);
1818
return;
1919
}
20-
const success = await handleGetUserInfo();
21-
if (success) {
22-
setIsLoading(false);
23-
}
20+
await handleGetUserInfo();
21+
setIsLoading(false);
2422
};
2523
initializeAuth();
2624
}, []);

0 commit comments

Comments
 (0)