From ab48649747a51193cd3684e93b35c825fef4be78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lu=C3=A3=20de=20Souza?= Date: Mon, 2 Dec 2024 15:48:34 +1100 Subject: [PATCH] fix: Send formatted fromAmount on review and success events (#2437) --- .../widgets-lib/src/widgets/add-tokens/views/Review.tsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/checkout/widgets-lib/src/widgets/add-tokens/views/Review.tsx b/packages/checkout/widgets-lib/src/widgets/add-tokens/views/Review.tsx index 30d7508889..88bbd8db68 100644 --- a/packages/checkout/widgets-lib/src/widgets/add-tokens/views/Review.tsx +++ b/packages/checkout/widgets-lib/src/widgets/add-tokens/views/Review.tsx @@ -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, }, }); @@ -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, },