From 2cbd29970225107862f055861ddfe7a44f86bec9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodrigo=20Santana=20Gon=C3=A7alves?= Date: Wed, 4 Dec 2024 15:09:21 -0300 Subject: [PATCH] Do not load the NFT holders table if the holders amount is zero --- src/app/treasury/HoldersSection.tsx | 2 +- src/pages/communities/nft/[address].tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/treasury/HoldersSection.tsx b/src/app/treasury/HoldersSection.tsx index a1b04ca9..54263aa3 100644 --- a/src/app/treasury/HoldersSection.tsx +++ b/src/app/treasury/HoldersSection.tsx @@ -43,7 +43,7 @@ export const HoldersSection = () => { {isError && ( )} - {!isError && holders && holders?.length > 0 && ( + {!isError && holders?.length > 0 && ( <> {paginationElement} diff --git a/src/pages/communities/nft/[address].tsx b/src/pages/communities/nft/[address].tsx index b4569e67..d4f724d0 100644 --- a/src/pages/communities/nft/[address].tsx +++ b/src/pages/communities/nft/[address].tsx @@ -322,7 +322,7 @@ export default function Page() { {/* Holders list */} - + {membersCount > 0 && } ) }