aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/modals/deposit-ether-modal.js
diff options
context:
space:
mode:
authorDan <danjm.com@gmail.com>2018-03-06 01:53:00 +0800
committerDan <danjm.com@gmail.com>2018-03-07 01:19:41 +0800
commit376ffb758fa6b6ea1fcfde1f2addf1c5a6070339 (patch)
tree000e45506a7dc29f915e7634bc8dbcb58ce0a2fc /ui/app/components/modals/deposit-ether-modal.js
parent5f8a632fec0e83b148e4e0b7fc95339fb870d804 (diff)
downloadtangerine-wallet-browser-376ffb758fa6b6ea1fcfde1f2addf1c5a6070339.tar.gz
tangerine-wallet-browser-376ffb758fa6b6ea1fcfde1f2addf1c5a6070339.tar.zst
tangerine-wallet-browser-376ffb758fa6b6ea1fcfde1f2addf1c5a6070339.zip
Shapeshift form handles market info unavailable errors.
Diffstat (limited to 'ui/app/components/modals/deposit-ether-modal.js')
-rw-r--r--ui/app/components/modals/deposit-ether-modal.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/ui/app/components/modals/deposit-ether-modal.js b/ui/app/components/modals/deposit-ether-modal.js
index 532d66653..7547dbcf5 100644
--- a/ui/app/components/modals/deposit-ether-modal.js
+++ b/ui/app/components/modals/deposit-ether-modal.js
@@ -33,6 +33,9 @@ function mapDispatchToProps (dispatch) {
hideModal: () => {
dispatch(actions.hideModal())
},
+ hideWarning: () => {
+ dispatch(actions.hideWarning())
+ },
showAccountDetailModal: () => {
dispatch(actions.showModal({ name: 'ACCOUNT_DETAILS' }))
},
@@ -119,6 +122,7 @@ DepositEtherModal.prototype.render = function () {
h('div.deposit-ether-modal__header__close', {
onClick: () => {
this.setState({ buyingWithShapeshift: false })
+ this.props.hideWarning()
this.props.hideModal()
},
}),
@@ -179,6 +183,7 @@ DepositEtherModal.prototype.render = function () {
}
DepositEtherModal.prototype.goToAccountDetailsModal = function () {
+ this.props.hideWarning()
this.props.hideModal()
this.props.showAccountDetailModal()
}