From 56a5b7b11a4760dabb78fae3abbcfe563fe543dd Mon Sep 17 00:00:00 2001 From: Andy Haynes Date: Fri, 4 Mar 2022 20:47:12 -0800 Subject: [PATCH] fix: don't fetch the transferred NFT --- packages/frontend/src/components/nft/NFTDetailWrapper.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/frontend/src/components/nft/NFTDetailWrapper.js b/packages/frontend/src/components/nft/NFTDetailWrapper.js index 422b26ccc3..cf08def4a5 100644 --- a/packages/frontend/src/components/nft/NFTDetailWrapper.js +++ b/packages/frontend/src/components/nft/NFTDetailWrapper.js @@ -31,10 +31,10 @@ export function NFTDetailWrapper ({ const { fetchNFT } = nftActions; useEffect(() => { - if (accountId && !nft) { + if (accountId && !nft && !transferredNft) { dispatch(fetchNFT({ accountId, contractName, tokenId })); } - }, [accountId, contractName, nft]); + }, [accountId, contractName, nft, transferredNft]); return (