diff --git a/app/components/UI/AssetOverview/AssetOverview.tsx b/app/components/UI/AssetOverview/AssetOverview.tsx index 99dfd161e7f..c1423528f85 100644 --- a/app/components/UI/AssetOverview/AssetOverview.tsx +++ b/app/components/UI/AssetOverview/AssetOverview.tsx @@ -169,10 +169,9 @@ const AssetOverview: React.FC = ({ ); const itemAddress = safeToChecksumAddress(asset.address); - const exchangeRate = - itemAddress && itemAddress in tokenExchangeRates - ? tokenExchangeRates?.[itemAddress]?.price - : undefined; + const exchangeRate = itemAddress + ? tokenExchangeRates?.[itemAddress]?.price + : undefined; let balance, balanceFiat; if (asset.isETH) { @@ -190,7 +189,7 @@ const AssetOverview: React.FC = ({ ); } else { balance = - itemAddress && itemAddress in tokenBalances + itemAddress && tokenBalances?.[itemAddress] ? renderFromTokenMinimalUnit(tokenBalances[itemAddress], asset.decimals) : 0; balanceFiat = balanceToFiat(