Skip to content

Commit

Permalink
fix lending current pair name #272
Browse files Browse the repository at this point in the history
  • Loading branch information
thanhvk committed Aug 6, 2020
1 parent 98a39cc commit 58abc45
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/app/lending/DappLending/DappLending.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export default class Dapp extends React.PureComponent<Props, State> {

componentDidUpdate(prevProps: Props) {
if ((!prevProps.isConnected && this.props.isConnected)
|| (this.props.currentPairName !== prevProps.currentPairName)
|| (this.props.currentPair.pair !== prevProps.currentPair.pair)
|| (this.props.authenticated && !prevProps.authenticated)) {
this.props.queryTradingPageData()
}
Expand Down
2 changes: 1 addition & 1 deletion src/app/lending/DappTrade/DappTrade.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export default class DappOrderPlace extends React.PureComponent<Props, State> {

componentDidUpdate(prevProps: Props) {
if ((!prevProps.isConnected && this.props.isConnected)
|| (this.props.currentPairName !== prevProps.currentPairName)
|| (this.props.currentPair.pair !== prevProps.currentPair.pair)
|| (this.props.authenticated && !prevProps.authenticated)) {
this.props.queryDappTradePageData()
}
Expand Down
2 changes: 1 addition & 1 deletion src/app/lending/TradingPage/TradingPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export default class TradingPage extends React.PureComponent<Props, State> {

componentDidUpdate(prevProps: Props) {
if ((!prevProps.isConnected && this.props.isConnected)
|| (this.props.currentPairName !== prevProps.currentPairName)) {
|| (this.props.currentPair.pair !== prevProps.currentPair.pair)) {

const {queryTradingPageData, match: {params: {pair}}} = this.props
queryTradingPageData(pair)
Expand Down

0 comments on commit 58abc45

Please sign in to comment.