Fix inventory search if ownerAddress = null

pull/268/head
artemkolodko 2 years ago
parent a8948b16ce
commit 171421ee55
  1. 2
      src/pages/AddressPage/tabs/inventory/Inventory.tsx

@ -49,7 +49,7 @@ export function Inventory(props: IInventoryProps) {
const { ownerAddress = '', tokenID, meta } = item
const name = meta && meta.name ? meta.name.toLowerCase() : ''
return ownerAddress.toLowerCase().includes(value)
return (ownerAddress || '').toLowerCase().includes(value)
|| tokenID.toLowerCase().includes(value)
|| name.includes(value)
})

Loading…
Cancel
Save