From 1ecc81f50122faed4e5f582777fa548cc35d16af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodrigo=20Santana=20Gon=C3=A7alves?= Date: Tue, 6 Feb 2024 00:55:13 -0300 Subject: [PATCH] wrap with Number instead --- src/screens/home/PortfolioComponent.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/screens/home/PortfolioComponent.tsx b/src/screens/home/PortfolioComponent.tsx index c6c128664..8784eee69 100644 --- a/src/screens/home/PortfolioComponent.tsx +++ b/src/screens/home/PortfolioComponent.tsx @@ -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,