Skip to content

Commit

Permalink
Update input value when click switch button swap page
Browse files Browse the repository at this point in the history
  • Loading branch information
neikop committed Nov 27, 2023
1 parent 9323de7 commit 69afc46
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/components/SwapForm/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,12 @@ const SwapForm: React.FC<SwapFormProps> = props => {
)}
</PriceAlertButton>
)}
<ReverseTokenSelectionButton onClick={() => currencyIn && onChangeCurrencyOut(currencyIn)} />
<ReverseTokenSelectionButton
onClick={() => {
currencyIn && onChangeCurrencyOut(currencyIn)
routeSummary && onUserInput(routeSummary.parsedAmountOut.toExact())
}}
/>
</Flex>
</AutoRow>

Expand Down

0 comments on commit 69afc46

Please sign in to comment.