Minor update

pull/274/head
artemkolodko 2 years ago
parent ae778f25d0
commit e43fe0c77a
  1. 2
      src/pages/AddressPage/AddressDetails.tsx
  2. 3
      src/pages/AddressPage/index.tsx

@ -79,7 +79,7 @@ export function AddressDetailsDisplay(props: AddressDetailsProps) {
contractShardId contractShardId
}; };
if(holdersCount) { if(holdersCount !== undefined) {
data.holders = holdersCount data.holders = holdersCount
} }

@ -154,6 +154,9 @@ export function AddressPage() {
const getInventory = async () => { const getInventory = async () => {
try { try {
if (type === "erc721" || type === "erc1155") { if (type === "erc721" || type === "erc1155") {
if(type === "erc1155") {
setHoldersCount(0)
}
let items = type === "erc721" let items = type === "erc721"
? await getTokenERC721Assets([id]) ? await getTokenERC721Assets([id])
: await getTokenERC1155Assets([id]) : await getTokenERC1155Assets([id])

Loading…
Cancel
Save