From f707dac358934950035f28095ae6b9ea992e176d Mon Sep 17 00:00:00 2001 From: Justin Starry Date: Mon, 15 Nov 2021 14:17:57 +0100 Subject: [PATCH] explorer: hide rank when it is null (#21277) --- explorer/src/components/account/TokenAccountSection.tsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/explorer/src/components/account/TokenAccountSection.tsx b/explorer/src/components/account/TokenAccountSection.tsx index 56c5bba182..06583d9664 100644 --- a/explorer/src/components/account/TokenAccountSection.tsx +++ b/explorer/src/components/account/TokenAccountSection.tsx @@ -129,9 +129,11 @@ function FungibleTokenMintAccountCard({

Price{" "} - - Rank #{tokenPriceInfo.market_cap_rank} - + {tokenPriceInfo.market_cap_rank && ( + + Rank #{tokenPriceInfo.market_cap_rank} + + )}

${tokenPriceInfo.price.toFixed(tokenPriceDecimals)}{" "}