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

Commit

Permalink
FIX LIVE-2176 - Fix NFT Crumb (#4950)
Browse files Browse the repository at this point in the history
  • Loading branch information
lambertkevin committed Apr 28, 2022
1 parent 950cd41 commit 6bb3cc6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/renderer/components/Breadcrumb/NFTCrumb.js
Original file line number Diff line number Diff line change
Expand Up @@ -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],
);
Expand Down

0 comments on commit 6bb3cc6

Please sign in to comment.