From 6bb3cc68be4668fcdf88fc44599801e769e33290 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Lambert?= <44363395+lambertkevin@users.noreply.github.com> Date: Wed, 27 Apr 2022 18:46:56 +0200 Subject: [PATCH] FIX LIVE-2176 - Fix NFT Crumb (#4950) --- src/renderer/components/Breadcrumb/NFTCrumb.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/renderer/components/Breadcrumb/NFTCrumb.js b/src/renderer/components/Breadcrumb/NFTCrumb.js index a793e7ddc3..1c957f3913 100644 --- a/src/renderer/components/Breadcrumb/NFTCrumb.js +++ b/src/renderer/components/Breadcrumb/NFTCrumb.js @@ -54,16 +54,15 @@ const NFTCrumb = () => { ); const activeItem = useMemo( - () => items.find((item: any) => item.nft?.contract === collectionAddress) || items[0], + () => items.find((item: any) => item.key === collectionAddress) || items[0], [collectionAddress, items], ); const onCollectionSelected = useCallback( item => { if (!item) return; - const { collection } = item; setTrackingSource("NFT breadcrumb"); - history.push({ pathname: `/account/${account.id}/nft-collection/${collection.contract}` }); + history.push({ pathname: `/account/${account.id}/nft-collection/${item.key}` }); }, [account.id, history], );