From 7b1a8d81dc81031469c942dc8a2f83392513bbff Mon Sep 17 00:00:00 2001 From: Jhonatan Gonzalez Date: Wed, 27 Mar 2024 18:48:24 +0900 Subject: [PATCH] fix: [Sale Widget] issue with passing incorrect amount to on ramp widget (#1632) --- .../src/widgets/sale/functions/smartCheckoutUtils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/checkout/widgets-lib/src/widgets/sale/functions/smartCheckoutUtils.ts b/packages/checkout/widgets-lib/src/widgets/sale/functions/smartCheckoutUtils.ts index b92857ede9..7b7407114e 100644 --- a/packages/checkout/widgets-lib/src/widgets/sale/functions/smartCheckoutUtils.ts +++ b/packages/checkout/widgets-lib/src/widgets/sale/functions/smartCheckoutUtils.ts @@ -193,7 +193,7 @@ export const getTopUpViewData = ( subheading = ['views.PAYMENT_METHODS.topUp.subheading.native', balances]; } - const amount = erc20?.delta.balance.toString() || '0'; + const amount = erc20?.delta.formattedBalance || '0'; return { amount,