Skip to content

Commit

Permalink
update based on review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
NiranjanaBinoy committed Feb 21, 2023
1 parent c959e4b commit b4dedd1
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions ui/hooks/useTransactionDisplayData.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,17 +150,17 @@ export function useTransactionDisplayData(transactionGroup) {
}
useEffect(() => {
async function getAndSetAssetDetails() {
const assetDetails = await getAssetDetails(
recipientAddress,
senderAddress,
initialTransaction?.txParams?.data,
knownNfts,
);
setCurrentAssetDetails(assetDetails);
}
if (isTokenCategory && !token) {
getAndSetAssetDetails();
if (isTokenCategory && !token) {
const assetDetails = await getAssetDetails(
recipientAddress,
senderAddress,
initialTransaction?.txParams?.data,
knownNfts,
);
setCurrentAssetDetails(assetDetails);
}
}
getAndSetAssetDetails();
}, [
isTokenCategory,
token,
Expand Down

0 comments on commit b4dedd1

Please sign in to comment.