File tree 2 files changed +5
-5
lines changed
ui/pages/asset/components
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -223,9 +223,7 @@ exports[`AssetPage should render a native asset 1`] = `
223
223
<p
224
224
class = " mm-box mm-text mm-text--body-md mm-text--font-weight-medium mm-text--text-align-end mm-box--color-text-default"
225
225
data-testid = " multichain-token-list-item-secondary-value"
226
- >
227
- $0.00
228
- </p >
226
+ />
229
227
</div >
230
228
<div
231
229
class = " mm-box mm-box--display-flex mm-box--flex-direction-row mm-box--justify-content-space-between"
Original file line number Diff line number Diff line change @@ -168,7 +168,7 @@ const AssetPage = ({
168
168
169
169
// Market and conversion rate data
170
170
const baseCurrency = marketData [ chainId ] ?. [ address ] ?. currency ;
171
- const tokenMarketPrice = marketData [ chainId ] ?. [ address ] ?. price || 0 ;
171
+ const tokenMarketPrice = marketData [ chainId ] ?. [ address ] ?. price || undefined ;
172
172
const tokenExchangeRate =
173
173
type === AssetType . native
174
174
? currencyRates [ symbol ] ?. conversionRate
@@ -284,7 +284,9 @@ const AssetPage = ({
284
284
chainId = { chainId }
285
285
symbol = { symbol }
286
286
image = { image }
287
- tokenFiatAmount = { showFiat ? tokenFiatAmount : null }
287
+ tokenFiatAmount = {
288
+ showFiat && tokenMarketPrice ? tokenFiatAmount : null
289
+ }
288
290
string = { balance ?. toString ( ) }
289
291
/>
290
292
< Box
You can’t perform that action at this time.
0 commit comments