From 0cdbb0f8abe789cd4d9ccc16cb41106c31557065 Mon Sep 17 00:00:00 2001 From: Wukong Sun Date: Fri, 11 Oct 2024 10:30:07 +0800 Subject: [PATCH] fix: mf-6450 reset input amount --- .../plugins/Trader/src/SiteAdaptor/trader/views/Trade/index.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/plugins/Trader/src/SiteAdaptor/trader/views/Trade/index.tsx b/packages/plugins/Trader/src/SiteAdaptor/trader/views/Trade/index.tsx index d76ff5a47f85..da111be30f5d 100644 --- a/packages/plugins/Trader/src/SiteAdaptor/trader/views/Trade/index.tsx +++ b/packages/plugins/Trader/src/SiteAdaptor/trader/views/Trade/index.tsx @@ -253,6 +253,7 @@ export function TradeView() { isSwap && toToken?.address ? [toToken.address] : [], ) if (picked) { + setInputAmount('') setFromToken(picked) if (toChainId !== picked.chainId && isSwap) setToToken(undefined) } @@ -320,6 +321,7 @@ export function TradeView() { { + setInputAmount('') setFromToken(toToken) setToToken(fromToken) }}>