Skip to content

Commit

Permalink
feat(nfts): hide broken imgs
Browse files Browse the repository at this point in the history
  • Loading branch information
plondon committed Apr 28, 2022
1 parent 143f58d commit 1e2f0b1
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,9 @@ const NftsSearch: React.FC<Props> = ({ formValues, nftActions, nftSearch, router
[key].map((item) => ({
label: (
<Flex alignItems='center' gap={8}>
<img alt='url' height='18px' src={item.image_url || item.profile_img_url} />
{item.image_url || item.profile_img_url ? (
<img alt='url' height='18px' src={item.image_url || item.profile_img_url} />
) : null}
<Text weight={600} size='14px'>
{item.name}
</Text>
Expand Down

0 comments on commit 1e2f0b1

Please sign in to comment.