Skip to content

Commit

Permalink
Merge branch 'main' into 1247-bug-browser-dialog-prompts-can-overlay-…
Browse files Browse the repository at this point in the history
…outside-of-tab
  • Loading branch information
Daniel-Cross authored Aug 27, 2024
2 parents 2efa844 + 3d3b689 commit ad42703
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions app/components/UI/AssetOverview/AssetOverview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -169,10 +169,9 @@ const AssetOverview: React.FC<AssetOverviewProps> = ({
);

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) {
Expand All @@ -190,7 +189,7 @@ const AssetOverview: React.FC<AssetOverviewProps> = ({
);
} else {
balance =
itemAddress && itemAddress in tokenBalances
itemAddress && tokenBalances?.[itemAddress]
? renderFromTokenMinimalUnit(tokenBalances[itemAddress], asset.decimals)
: 0;
balanceFiat = balanceToFiat(
Expand Down

0 comments on commit ad42703

Please sign in to comment.