explorer: hide rank when it is null (#21277)
This commit is contained in:
parent
47e6848fbf
commit
f707dac358
|
@ -129,9 +129,11 @@ function FungibleTokenMintAccountCard({
|
||||||
<div className="card-body">
|
<div className="card-body">
|
||||||
<h4>
|
<h4>
|
||||||
Price{" "}
|
Price{" "}
|
||||||
|
{tokenPriceInfo.market_cap_rank && (
|
||||||
<span className="ml-2 badge badge-primary rank">
|
<span className="ml-2 badge badge-primary rank">
|
||||||
Rank #{tokenPriceInfo.market_cap_rank}
|
Rank #{tokenPriceInfo.market_cap_rank}
|
||||||
</span>
|
</span>
|
||||||
|
)}
|
||||||
</h4>
|
</h4>
|
||||||
<h1 className="mb-0">
|
<h1 className="mb-0">
|
||||||
${tokenPriceInfo.price.toFixed(tokenPriceDecimals)}{" "}
|
${tokenPriceInfo.price.toFixed(tokenPriceDecimals)}{" "}
|
||||||
|
|
Loading…
Reference in New Issue