Skip to content

Commit

Permalink
fix: NaN snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
gambinish committed Dec 17, 2024
1 parent 4823423 commit b2a79e5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,7 @@ exports[`AssetPage should render an ERC20 asset without prices 1`] = `
class="mm-box mm-text mm-text--body-md mm-text--font-weight-medium mm-text--text-align-end mm-box--color-text-default"
data-testid="multichain-token-list-item-secondary-value"
>
$NaN
$0.00
</p>
</div>
<div
Expand Down
2 changes: 1 addition & 1 deletion ui/pages/asset/components/asset-page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ const AssetPage = ({
const tokenExchangeRate =
type === AssetType.native
? currencyRates[symbol]?.conversionRate
: currencyRates[baseCurrency]?.conversionRate || undefined;
: currencyRates[baseCurrency]?.conversionRate || 0;

// Calculate fiat amount
const tokenFiatAmount =
Expand Down

0 comments on commit b2a79e5

Please sign in to comment.