Skip to content

Commit

Permalink
explorer: hide rank when it is null (solana-labs#21277)
Browse files Browse the repository at this point in the history
  • Loading branch information
jstarry authored Nov 15, 2021
1 parent 47e6848 commit f707dac
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions explorer/src/components/account/TokenAccountSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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)}{" "}
Expand Down

0 comments on commit f707dac

Please sign in to comment.