diff --git a/app/components/UI/Tokens/index.js b/app/components/UI/Tokens/index.js index 7af958a99bf..655a84f0584 100644 --- a/app/components/UI/Tokens/index.js +++ b/app/components/UI/Tokens/index.js @@ -246,7 +246,7 @@ class Tokens extends PureComponent { const hasTokensBalance = hasTokens && tokens.some( - token => !token.isETH && tokenBalances[token.address] && !tokenBalances[token.address].isZero() + token => !token.isETH && tokenBalances[token.address] && !tokenBalances[token.address]?.isZero?.() ); return ( @@ -266,7 +266,7 @@ class Tokens extends PureComponent { const tokensToDisplay = hideZeroBalanceTokens ? tokens.filter(token => { const { address, symbol } = token; - return (tokenBalances[address] && !tokenBalances[address].isZero()) || symbol === 'ETH'; + return (tokenBalances[address] && !tokenBalances[address]?.isZero?.()) || symbol === 'ETH'; // eslint-disable-next-line no-mixed-spaces-and-tabs }) : tokens;