Skip to content
This repository was archived by the owner on Jun 16, 2022. It is now read-only.

Commit 6bb3cc6

Browse files
committed
FIX LIVE-2176 - Fix NFT Crumb (#4950)
1 parent 950cd41 commit 6bb3cc6

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/renderer/components/Breadcrumb/NFTCrumb.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -54,16 +54,15 @@ const NFTCrumb = () => {
5454
);
5555

5656
const activeItem = useMemo(
57-
() => items.find((item: any) => item.nft?.contract === collectionAddress) || items[0],
57+
() => items.find((item: any) => item.key === collectionAddress) || items[0],
5858
[collectionAddress, items],
5959
);
6060

6161
const onCollectionSelected = useCallback(
6262
item => {
6363
if (!item) return;
64-
const { collection } = item;
6564
setTrackingSource("NFT breadcrumb");
66-
history.push({ pathname: `/account/${account.id}/nft-collection/${collection.contract}` });
65+
history.push({ pathname: `/account/${account.id}/nft-collection/${item.key}` });
6766
},
6867
[account.id, history],
6968
);

0 commit comments

Comments
 (0)