Skip to content

Commit

Permalink
fix useProfile hook to reflect BE changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ddusichka committed Dec 4, 2024
1 parent 3c382ce commit a6508e6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions frontend/hooks/useProfile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@ export function useProfile(userId: string) {
user_id: response.data.user_id,
username: response.data.username,
display_name: response.data.display_name,
bio: response.data.bio.String,
profile_picture: response.data.profile_picture.String,
bio: response.data.bio,
profile_picture: response.data.profile_picture,
followers: response.data.followers,
followed: response.data.followed,
score: response.data.score,
};

setUserProfile(profile);
setBio(response.data.bio.String);
setBio(response.data.bio);
} catch (error) {
console.error("Error fetching user profile:", error);
}
Expand Down

0 comments on commit a6508e6

Please sign in to comment.