From 1277b3a8f6a01a7167962a2353516f06b88f7fda Mon Sep 17 00:00:00 2001 From: Justin Starry Date: Thu, 13 Aug 2020 12:59:34 +0800 Subject: [PATCH] Explorer: Hide token holders table when none found (#11605) --- explorer/src/components/account/TokenLargestAccountsCard.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/explorer/src/components/account/TokenLargestAccountsCard.tsx b/explorer/src/components/account/TokenLargestAccountsCard.tsx index 3b32d7ffa9..5aa28c8d8f 100644 --- a/explorer/src/components/account/TokenLargestAccountsCard.tsx +++ b/explorer/src/components/account/TokenLargestAccountsCard.tsx @@ -40,6 +40,10 @@ export function TokenLargestAccountsCard({ pubkey }: { pubkey: PublicKey }) { } const accounts = largestAccounts.data.largest; + if (accounts.length === 0) { + return ; + } + return ( <>