Skip to content

Commit

Permalink
fix: bio returning undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
Complexlity committed Aug 10, 2024
1 parent 273e6f8 commit bdd5ea2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/witty-toys-compare.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"uni-farcaster-sdk": patch
---

Fix bio returning undefined
4 changes: 3 additions & 1 deletion src/services/neynar/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ export const convertToV2User = (v1User: any): NeynarUser => {
display_name: v1User.displayName,
pfp_url: v1User.pfp.url,
profile: {
bio: v1User.profile.bio.text,
bio: {
text: v1User.profile.bio.text
},
},
follower_count: v1User?.followerCount,
following_count: v1User?.followingCount,
Expand Down

0 comments on commit bdd5ea2

Please sign in to comment.