From 776ed8a04cdebb2650433cfed195172e188382fd Mon Sep 17 00:00:00 2001 From: artemkolodko Date: Wed, 24 May 2023 20:50:26 +0100 Subject: [PATCH] Minor update --- src/pages/AddressPage/index.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/pages/AddressPage/index.tsx b/src/pages/AddressPage/index.tsx index 885d46d..2af581a 100644 --- a/src/pages/AddressPage/index.tsx +++ b/src/pages/AddressPage/index.tsx @@ -65,7 +65,7 @@ export function AddressPage() { id = id.slice(0, 3) === "one" ? getAddress(id).basicHex : id; const erc20Token = erc20Map[id] || null; - + const erc1155Token = erc1155Map[id] || null let type = erc721Map[id] ? "erc721" : erc1155Map[id] @@ -192,7 +192,9 @@ export function AddressPage() { } return acc }, {} as Record) - setHoldersCount(Object.keys(holdersMap).length) + const holdersInventoryLength = Object.keys(holdersMap).length + const tokenHolders = erc1155Token ? erc1155Token.holders : 0 + setHoldersCount(Math.max(holdersInventoryLength, +tokenHolders)) } } else { setInventory([]);