Skip to content

Commit a6784ff

Browse files
committed
[FE] BUG: 비로그인 시 불필요한 API 호출 막기 #178
1 parent 1b64aac commit a6784ff

File tree

1 file changed

+1
-0
lines changed
  • src/frontend/src/components/TopNavBar

1 file changed

+1
-0
lines changed

src/frontend/src/components/TopNavBar/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ export const TopNavBar = () => {
3434

3535
if (!accessToken) {
3636
clearProfile();
37+
return;
3738
}
3839

3940
const initializeUser = async () => {

0 commit comments

Comments
 (0)