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([]);