explorer: hide rank when it is null (#21277)

This commit is contained in:
Justin Starry 2021-11-15 14:17:57 +01:00 committed by GitHub
parent 47e6848fbf
commit f707dac358
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 3 deletions

View File

@ -129,9 +129,11 @@ function FungibleTokenMintAccountCard({
<div className="card-body">
<h4>
Price{" "}
<span className="ml-2 badge badge-primary rank">
Rank #{tokenPriceInfo.market_cap_rank}
</span>
{tokenPriceInfo.market_cap_rank && (
<span className="ml-2 badge badge-primary rank">
Rank #{tokenPriceInfo.market_cap_rank}
</span>
)}
</h4>
<h1 className="mb-0">
${tokenPriceInfo.price.toFixed(tokenPriceDecimals)}{" "}