Skip to content

Commit

Permalink
fix: don't fetch the transferred NFT
Browse files Browse the repository at this point in the history
  • Loading branch information
andy-haynes committed Mar 5, 2022
1 parent efa1a55 commit 56a5b7b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/frontend/src/components/nft/NFTDetailWrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
<NFTDetail
Expand Down

0 comments on commit 56a5b7b

Please sign in to comment.