From a8948b16cee3685f0f6d910800e544633e15e481 Mon Sep 17 00:00:00 2001 From: artemkolodko Date: Wed, 29 Mar 2023 14:27:00 +0100 Subject: [PATCH 1/3] Show erc1155 tokens without metadata --- src/pages/AddressPage/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/AddressPage/index.tsx b/src/pages/AddressPage/index.tsx index 28f4248..63ddf5d 100644 --- a/src/pages/AddressPage/index.tsx +++ b/src/pages/AddressPage/index.tsx @@ -187,7 +187,7 @@ export function AddressPage() { } return item; }) - .filter((item) => item.meta) + // .filter((item) => item.meta) .map((item) => { item.type = type; return item; From 171421ee55fe34fb76aaeeb8cb1ea315356dafba Mon Sep 17 00:00:00 2001 From: artemkolodko Date: Wed, 29 Mar 2023 15:47:00 +0100 Subject: [PATCH 2/3] Fix inventory search if ownerAddress = null --- src/pages/AddressPage/tabs/inventory/Inventory.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/AddressPage/tabs/inventory/Inventory.tsx b/src/pages/AddressPage/tabs/inventory/Inventory.tsx index ced0932..6c6afef 100644 --- a/src/pages/AddressPage/tabs/inventory/Inventory.tsx +++ b/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) }) From d9f50aba31249ab04becaac91871b23969db51c0 Mon Sep 17 00:00:00 2001 From: artemkolodko Date: Thu, 30 Mar 2023 11:33:58 +0100 Subject: [PATCH 3/3] Update style for inventory without meta --- src/pages/AddressPage/tabs/inventory/InventoryItem.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/pages/AddressPage/tabs/inventory/InventoryItem.tsx b/src/pages/AddressPage/tabs/inventory/InventoryItem.tsx index 2dda588..30e4bc0 100644 --- a/src/pages/AddressPage/tabs/inventory/InventoryItem.tsx +++ b/src/pages/AddressPage/tabs/inventory/InventoryItem.tsx @@ -124,8 +124,8 @@ export function InventoryItem(props: IInventoryItemProps) { align={"center"} > - - No Image + + No Image ) : url ? ( @@ -146,8 +146,8 @@ export function InventoryItem(props: IInventoryItemProps) { align={"center"} > - - No Image + + No Image )}