Skip to content

Commit

Permalink
feat: solana
Browse files Browse the repository at this point in the history
  • Loading branch information
Majorfi committed Nov 7, 2024
1 parent 7da29f9 commit 141b85c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion components/apps/tokenlistooor/TokenListCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ function LegacyTokenListCard({item}: {item: Partial<TTokenListItem>}): ReactElem
<Image
unoptimized
src={
item.logoURI?.startsWith('ipfs://')
(item.logoURI || '').startsWith('ipfs://')
? `https://ipfs.io/ipfs/${(item.logoURI || '').replace('ipfs://', '')}`
: item.logoURI || ''
}
Expand Down
10 changes: 5 additions & 5 deletions pages/list/[list].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,12 @@ function TokenListHero({list}: {list: TTokenListItem}): ReactElement {
<ImageWithFallback
unoptimized
src={
list.logoURI.startsWith('ipfs://')
(list.logoURI || '').startsWith('ipfs://')
? `https://ipfs.io/ipfs/${list.logoURI.replace('ipfs://', '')}`
: list.logoURI
}
altSrc={
list.logoURI.startsWith('ipfs://')
(list.logoURI || '').startsWith('ipfs://')
? `https://ipfs.io/ipfs/${list.logoURI.replace('ipfs://', '')}`
: list.logoURI
}
Expand Down Expand Up @@ -255,9 +255,9 @@ function TokenListContent({list}: {list: TTokenListItem}): ReactElement {
return true;
}
return (
item.name.toLowerCase().startsWith(search.toLowerCase()) ||
item.symbol.toLowerCase().startsWith(search.toLowerCase()) ||
item.address.toLowerCase().startsWith(search.toLowerCase())
(item.name || '').toLowerCase().startsWith(search.toLowerCase()) ||
(item.symbol || '').toLowerCase().startsWith(search.toLowerCase()) ||
((item.address as string) || '').toLowerCase().startsWith(search.toLowerCase())
);
});
}, [list.tokens, search, network]);
Expand Down

0 comments on commit 141b85c

Please sign in to comment.