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

[LIVE-2176] Bugfix - fix NFT crumb #4950

Merged
merged 1 commit into from
Apr 27, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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