Skip to content

Commit

Permalink
Do not load the NFT holders table if the holders amount is zero (#448)
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigoncalves authored Dec 5, 2024
1 parent 97b525e commit 04f7401
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/app/treasury/HoldersSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export const HoldersSection = () => {
{isError && (
<ErrorMessageAlert message="An error occurred loading Token Holders. Please try again shortly." />
)}
{!isError && holders && holders?.length > 0 && (
{!isError && holders?.length > 0 && (
<>
<Table data={holders} />
{paginationElement}
Expand Down
2 changes: 1 addition & 1 deletion src/pages/communities/nft/[address].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ export default function Page() {
</div>
</div>
{/* Holders list */}
<NftHoldersSection address={nftAddress} />
{membersCount > 0 && <NftHoldersSection address={nftAddress} />}
</MainContainer>
)
}
Expand Down

0 comments on commit 04f7401

Please sign in to comment.