Commit 93a4f002 authored by Jack Short's avatar Jack Short Committed by GitHub

fix: adding usd_value back to trace event (#5912)

parent 48833f27
...@@ -207,6 +207,10 @@ export const BagFooter = ({ totalEthPrice, bagStatus, fetchAssets, eventProperti ...@@ -207,6 +207,10 @@ export const BagFooter = ({ totalEthPrice, bagStatus, fetchAssets, eventProperti
) )
const usdcValue = useStablecoinValue(inputCurrency ? swapTrade?.inputAmount : parsedAmount) const usdcValue = useStablecoinValue(inputCurrency ? swapTrade?.inputAmount : parsedAmount)
const traceEventProperties = {
usd_value: usdcValue?.toExact(),
...eventProperties,
}
return ( return (
<FooterContainer> <FooterContainer>
...@@ -267,7 +271,7 @@ export const BagFooter = ({ totalEthPrice, bagStatus, fetchAssets, eventProperti ...@@ -267,7 +271,7 @@ export const BagFooter = ({ totalEthPrice, bagStatus, fetchAssets, eventProperti
events={[BrowserEvent.onClick]} events={[BrowserEvent.onClick]}
name={NFTEventName.NFT_BUY_BAG_PAY} name={NFTEventName.NFT_BUY_BAG_PAY}
element={InterfaceElementName.NFT_BUY_BAG_PAY_BUTTON} element={InterfaceElementName.NFT_BUY_BAG_PAY_BUTTON}
properties={{ ...eventProperties }} properties={{ ...traceEventProperties }}
shouldLogImpression={connected && !disabled} shouldLogImpression={connected && !disabled}
> >
<Warning>{warningText}</Warning> <Warning>{warningText}</Warning>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment