Skip to content

Commit d9ffb6f

Browse files
committed
오류 수정
1 parent 641b8e8 commit d9ffb6f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/domains/shared/components/profile/Profile.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ function Profile({ userNickname }: Props) {
1010
const { profile, fetchProfile } = useFetchProfile();
1111
useEffect(() => {
1212
fetchProfile();
13-
}, [profile?.abvLevel]);
13+
}, [fetchProfile, profile?.data?.abvLevel]);
1414

15-
if (!profile) return;
16-
const { abvLevel } = profile;
15+
if (!profile?.data) return null;
16+
const { abvLevel } = profile.data;
1717

1818
return (
1919
<div className="flex gap-2 items-center justify-start">

0 commit comments

Comments
 (0)