Skip to content

Commit

Permalink
fix: mf-6450 reset input amount
Browse files Browse the repository at this point in the history
  • Loading branch information
swkatmask committed Oct 11, 2024
1 parent 3e8754b commit 0cdbb0f
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,7 @@ export function TradeView() {
isSwap && toToken?.address ? [toToken.address] : [],
)
if (picked) {
setInputAmount('')
setFromToken(picked)
if (toChainId !== picked.chainId && isSwap) setToToken(undefined)
}
Expand Down Expand Up @@ -320,6 +321,7 @@ export function TradeView() {
<Box
className={classes.swapButton}
onClick={() => {
setInputAmount('')
setFromToken(toToken)
setToToken(fromToken)
}}>
Expand Down

0 comments on commit 0cdbb0f

Please sign in to comment.