Skip to content

Commit

Permalink
fix: Send formatted fromAmount on review and success events (#2437)
Browse files Browse the repository at this point in the history
  • Loading branch information
luads authored Dec 2, 2024
1 parent a8d1cec commit ab48649
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -297,10 +297,11 @@ export function Review({
toTokenChainId: route.route.params.toChain,
fromTokenAddress: route.route.params.fromToken,
fromTokenChainId: route.route.params.fromChain,
fromAmount: route.route.params.fromAmount,
fromAddress: route.route.params.fromAddress,
toAddress: route.route.params.toAddress,
estimatedRouteDuration: route.route.estimate.estimatedRouteDuration,
fromAmount: amountData?.fromAmount,
toAmount: amountData?.toAmount,
},
});

Expand Down Expand Up @@ -392,10 +393,10 @@ export function Review({
toTokenChainId: route.route.params.toChain,
fromTokenAddress: route.route.params.fromToken,
fromTokenChainId: route.route.params.fromChain,
fromAmount: route.route.params.fromAmount,
fromAmount: amountData?.fromAmount,
fromAddress: route.route.params.fromAddress,
toAddress: route.route.params.toAddress,
toAmount: data.toAmount,
toAmount: amountData?.toAmount,
fromTokenSymbol: amountData?.fromToken.symbol,
toTokenSymbol: amountData?.toToken.symbol,
},
Expand Down

0 comments on commit ab48649

Please sign in to comment.