Skip to content

Commit

Permalink
fix - bugs related to previous refresh action still referenced
Browse files Browse the repository at this point in the history
  • Loading branch information
Lyncee59 committed Jun 22, 2018
1 parent 1f81ed7 commit 1315f0b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class RequestBchContainer extends React.PureComponent {
}

handleRefresh () {
this.props.refreshActions.refresh()
this.init()
}

render () {
Expand Down Expand Up @@ -90,7 +90,6 @@ const mapStateToProps = (state) => ({

const mapDispatchToProps = (dispatch) => ({
bchDataActions: bindActionCreators(actions.core.data.bch, dispatch),
refreshActions: bindActionCreators(actions.core.refresh, dispatch),
modalActions: bindActionCreators(actions.modals, dispatch),
formActions: bindActionCreators(actions.form, dispatch)
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class FirstStepContainer extends React.PureComponent {
}

handleRefresh () {
this.props.refreshActions.refresh()
this.init()
}

render () {
Expand Down Expand Up @@ -90,7 +90,6 @@ const mapStateToProps = (state) => ({
const mapDispatchToProps = (dispatch) => ({
requestBtcActions: bindActionCreators(actions.components.requestBtc, dispatch),
bitcoinDataActions: bindActionCreators(actions.core.data.bitcoin, dispatch),
refreshActions: bindActionCreators(actions.core.refresh, dispatch),
modalActions: bindActionCreators(actions.modals, dispatch),
formActions: bindActionCreators(actions.form, dispatch)
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class FirstStep extends React.Component {
}

handleRefresh () {
this.props.refreshActions.refresh()
this.props.actions.initialized()
}

handleToToggle (val) {
Expand Down Expand Up @@ -61,7 +61,6 @@ const mapStateToProps = state => ({
})

const mapDispatchToProps = dispatch => ({
refreshActions: bindActionCreators(actions.core.refresh, dispatch),
actions: bindActionCreators(actions.components.sendBtc, dispatch),
formActions: bindActionCreators(actions.form, dispatch)
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class FirstStepContainer extends React.Component {
}

handleRefresh () {
this.props.refreshActions.refresh()
this.props.actions.firstStepInitialized()
}

render () {
Expand Down Expand Up @@ -52,7 +52,6 @@ const mapStateToProps = state => ({
})

const mapDispatchToProps = dispatch => ({
refreshActions: bindActionCreators(actions.core.refresh, dispatch),
actions: bindActionCreators(actions.components.exchange, dispatch)
})

Expand Down

0 comments on commit 1315f0b

Please sign in to comment.