Skip to content

Commit

Permalink
fix(Exchange): reinitialize after loading with correct pairs
Browse files Browse the repository at this point in the history
  • Loading branch information
tony-blockchain committed Dec 11, 2018
1 parent bc596ce commit 9df06c1
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,9 @@ class ExchangeForm extends React.Component {
}

componentDidUpdate (prevProps) {
const { canUseExchange, actions } = this.props
if (!prevProps.canUseExchange && canUseExchange) actions.initialize()
const { canUseExchange, actions, from, to } = this.props
if (!prevProps.canUseExchange && canUseExchange)
actions.initialize(from, to)
}

componentWillUnmount () {
Expand Down

0 comments on commit 9df06c1

Please sign in to comment.