Skip to content

Commit

Permalink
wrap with Number instead
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigoncalves committed Feb 6, 2024
1 parent e84254f commit 1ecc81f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/screens/home/PortfolioComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,9 @@ export const PortfolioComponent = ({
)}
{balances
.sort(sortTokensBySymbol)
.filter(token => isDefaultToken(token.symbol) || +token.balance > 0)
.filter(
token => isDefaultToken(token.symbol) || Number(token.balance) > 0,
)
.map(
(
{ contractAddress, symbol, balance }: TokenOrBitcoinNetwork,
Expand Down

0 comments on commit 1ecc81f

Please sign in to comment.