Merge pull request #280 from ArtemKolodko/fix_nft_url

Fix nft url params
pull/281/head
Artem 1 year ago committed by GitHub
commit da755b8875
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      src/pages/InventoryDetailsPage/InventoryDetailsPage.tsx

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

Loading…
Cancel
Save