Skip to content

Commit

Permalink
refactor(extension): add policy id to dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
shawnbusuttil committed Jun 2, 2023
1 parent fd8bb23 commit b8d0c37
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions apps/browser-extension-wallet/.env.example
Expand Up @@ -18,6 +18,7 @@ USE_NFT_FOLDERS=false
USE_MULTI_CURRENCY=true
USE_HIDE_MY_BALANCE=false
USE_MULTI_DELEGATION_STAKING=false
USE_ADA_HANDLE=false

# In App URLs
CATALYST_GOOGLE_PLAY_URL=https://play.google.com/store/apps/details?id=io.iohk.vitvoting
Expand Down
Expand Up @@ -15,5 +15,5 @@ export const useFindNftByPolicyId = (policyId: Wallet.Cardano.PolicyId) => {
return useMemo(() => {
const { nftList } = getTokenList({ assetsInfo, balance: assetsBalance?.assets, environmentName, fiatCurrency });
return nftList.find((nft) => assetsInfo.get(nft.assetId).policyId === policyId);
}, [assetsInfo, assetsBalance?.assets, fiatCurrency, environmentName]);
}, [assetsInfo, assetsBalance?.assets, fiatCurrency, environmentName, policyId]);
};

0 comments on commit b8d0c37

Please sign in to comment.