From e43fe0c77a830dc2109a2b9177b466b8dfc987f1 Mon Sep 17 00:00:00 2001 From: artemkolodko Date: Wed, 24 May 2023 20:39:47 +0100 Subject: [PATCH] Minor update --- src/pages/AddressPage/AddressDetails.tsx | 2 +- src/pages/AddressPage/index.tsx | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/pages/AddressPage/AddressDetails.tsx b/src/pages/AddressPage/AddressDetails.tsx index 1748da7..d1a3904 100644 --- a/src/pages/AddressPage/AddressDetails.tsx +++ b/src/pages/AddressPage/AddressDetails.tsx @@ -79,7 +79,7 @@ export function AddressDetailsDisplay(props: AddressDetailsProps) { contractShardId }; - if(holdersCount) { + if(holdersCount !== undefined) { data.holders = holdersCount } diff --git a/src/pages/AddressPage/index.tsx b/src/pages/AddressPage/index.tsx index 5c7a4d8..885d46d 100644 --- a/src/pages/AddressPage/index.tsx +++ b/src/pages/AddressPage/index.tsx @@ -154,6 +154,9 @@ export function AddressPage() { const getInventory = async () => { try { if (type === "erc721" || type === "erc1155") { + if(type === "erc1155") { + setHoldersCount(0) + } let items = type === "erc721" ? await getTokenERC721Assets([id]) : await getTokenERC1155Assets([id])