Skip to content

Commit

Permalink
fix friends list
Browse files Browse the repository at this point in the history
  • Loading branch information
armaniferrante committed Jul 1, 2023
1 parent de40ea3 commit f4232de
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/message-sdk/src/components/UserList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,9 @@ function UserListItem({
}}
>
{formatUsername(user.username, 15)}{" "}
{Object.values(user.searched.blockchains).filter((bool) => bool)
{user.searched &&
user.searched.blockchains &&
Object.values(user.searched.blockchains).filter((bool) => bool)
.length > 0
? formatWalletAddress(user.searched.usernamePrefix!, 2)
: ""}
Expand Down

1 comment on commit f4232de

@vercel
Copy link

@vercel vercel bot commented on f4232de Jul 1, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.