Skip to content
This repository was archived by the owner on Apr 28, 2023. It is now read-only.

Commit

Permalink
fix: also switch amounts when switching assets
Browse files Browse the repository at this point in the history
  • Loading branch information
michael1011 committed Mar 8, 2019
1 parent 3df289b commit a8851e9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/swaptab/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,9 @@ class SwapTab extends React.Component {
onClick={() => {
this.setState({
base: quote,
baseAmount: quoteAmount,
quote: base,
quoteAmount: baseAmount,
});
}}
/>
Expand Down

0 comments on commit a8851e9

Please sign in to comment.