Skip to content

Commit

Permalink
add comments, missed search case
Browse files Browse the repository at this point in the history
  • Loading branch information
kev1n-peters committed Sep 24, 2024
1 parent 013b770 commit f596f3d
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ const TokenList = (props: Props) => {
}

// Exclude wormhole-wrapped tokens with no balance
// unless it's canonical
if (
props.isSource &&
isWrappedToken(tokenConfig, selectedChainConfig.key) &&
Expand Down Expand Up @@ -215,7 +216,13 @@ const TokenList = (props: Props) => {
}

// Exclude wormhole-wrapped tokens with no balance
if (props.isSource && isWrappedToken(token, chain) && !balance) {
// unless it's canonical
if (
props.isSource &&
isWrappedToken(token, chain) &&
!isCanonicalToken(token, chain) &&
!balance
) {
return false;
}

Expand Down

0 comments on commit f596f3d

Please sign in to comment.