Fix nft url params

pull/280/head
artemkolodko 1 year ago
parent 898ec1cafe
commit 2586f44b2e
  1. 4
      src/pages/InventoryDetailsPage/InventoryDetailsPage.tsx

@ -294,11 +294,13 @@ export function InventoryDetailsPage() {
const [inventory, setInventory] = useState<IUserERC721Assets>({} as any); const [inventory, setInventory] = useState<IUserERC721Assets>({} as any);
const [isLoading, setIsLoading] = useState(false) const [isLoading, setIsLoading] = useState(false)
const { let {
address = '', address = '',
tokenID = '', tokenID = '',
type = '' type = ''
}: { address: string, tokenID: string, type: string } = useParams(); }: { address: string, tokenID: string, type: string } = useParams();
address = address.toLowerCase()
tokenID = tokenID.toLowerCase()
const token721 = erc721Map[address] const token721 = erc721Map[address]
const token1155 = erc1155Map[address] const token1155 = erc1155Map[address]

Loading…
Cancel
Save