We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 641b8e8 commit d9ffb6fCopy full SHA for d9ffb6f
src/domains/shared/components/profile/Profile.tsx
@@ -10,10 +10,10 @@ function Profile({ userNickname }: Props) {
10
const { profile, fetchProfile } = useFetchProfile();
11
useEffect(() => {
12
fetchProfile();
13
- }, [profile?.abvLevel]);
+ }, [fetchProfile, profile?.data?.abvLevel]);
14
15
- if (!profile) return;
16
- const { abvLevel } = profile;
+ if (!profile?.data) return null;
+ const { abvLevel } = profile.data;
17
18
return (
19
<div className="flex gap-2 items-center justify-start">
0 commit comments