From 83abea0276a07a4a52e88493fc861d3146ea49ec Mon Sep 17 00:00:00 2001 From: Khac Kien Date: Mon, 27 Nov 2023 16:49:46 +0700 Subject: [PATCH] Update input value when click switch button swap page (#2403) --- src/components/SwapForm/index.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/components/SwapForm/index.tsx b/src/components/SwapForm/index.tsx index f8d0c3a341..a5a6d7ee28 100644 --- a/src/components/SwapForm/index.tsx +++ b/src/components/SwapForm/index.tsx @@ -245,7 +245,12 @@ const SwapForm: React.FC = props => { )} )} - currencyIn && onChangeCurrencyOut(currencyIn)} /> + { + currencyIn && onChangeCurrencyOut(currencyIn) + routeSummary && onUserInput(routeSummary.parsedAmountOut.toExact()) + }} + />