diff --git a/src/nft/components/bag/BagContent.tsx b/src/nft/components/bag/BagContent.tsx index 03f40edba6..ca7c55f9de 100644 --- a/src/nft/components/bag/BagContent.tsx +++ b/src/nft/components/bag/BagContent.tsx @@ -69,7 +69,7 @@ export const BagContent = () => { name={EventName.NFT_BUY_BAG_CHANGED} properties={{ usd_value: fetchedPriceData, - bag_quantity: itemsInBag, + bag_quantity: itemsInBag.length, ...formatAssetEventProperties(unavailableAssets), }} shouldLogImpression diff --git a/src/nft/components/collection/TransactionCompleteModal.tsx b/src/nft/components/collection/TransactionCompleteModal.tsx index 0bd7747a4c..43082aa17f 100644 --- a/src/nft/components/collection/TransactionCompleteModal.tsx +++ b/src/nft/components/collection/TransactionCompleteModal.tsx @@ -1,3 +1,4 @@ +import { formatEther } from '@ethersproject/units' import { EventName, ModalName } from 'analytics/constants' import { Trace } from 'analytics/Trace' import { useTrace } from 'analytics/Trace' @@ -82,7 +83,7 @@ const TxCompleteModal = () => { name={EventName.NFT_BUY_BAG_SUCCEEDED} properties={{ buy_quantity: nftsPurchased.length, - usd_value: totalPurchaseValue, + usd_value: parseFloat(formatEther(totalPurchaseValue)) * ethPrice, transaction_hash: txHash, ...formatAssetEventProperties(nftsPurchased), ...trace,