From 8d6af087a260039f89bea109b90ad6f833ac3a3a Mon Sep 17 00:00:00 2001 From: Justin Starry Date: Thu, 17 Sep 2020 11:27:56 +0800 Subject: [PATCH] Don't fetch token transaction history for accounts with many holdings (#12304) --- explorer/src/components/account/TokenHistoryCard.tsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/explorer/src/components/account/TokenHistoryCard.tsx b/explorer/src/components/account/TokenHistoryCard.tsx index 824e3b6421..2fe9ba140e 100644 --- a/explorer/src/components/account/TokenHistoryCard.tsx +++ b/explorer/src/components/account/TokenHistoryCard.tsx @@ -37,6 +37,12 @@ export function TokenHistoryCard({ pubkey }: { pubkey: PublicKey }) { const tokens = ownedTokens.data?.tokens; if (tokens === undefined || tokens.length === 0) return null; + if (tokens.length > 25) { + return ( + + ); + } + return ; }