aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/modals/deposit-ether-modal.js
diff options
context:
space:
mode:
authorDan Finlay <542863+danfinlay@users.noreply.github.com>2018-03-07 07:07:51 +0800
committerGitHub <noreply@github.com>2018-03-07 07:07:51 +0800
commit9762a730413129361062804aa8dfc7be7cf74868 (patch)
tree44907ad02f7fde252ba29c8e99cb4bc306cd8279 /ui/app/components/modals/deposit-ether-modal.js
parent52b4876cf9a6dd4eb6bbac67242b0a9e1f3cc01b (diff)
parent376ffb758fa6b6ea1fcfde1f2addf1c5a6070339 (diff)
downloadtangerine-wallet-browser-9762a730413129361062804aa8dfc7be7cf74868.tar.gz
tangerine-wallet-browser-9762a730413129361062804aa8dfc7be7cf74868.tar.zst
tangerine-wallet-browser-9762a730413129361062804aa8dfc7be7cf74868.zip
Merge pull request #3433 from danjm/i3087-shapeshift-split-undefined
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()
}