aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/buy-button-subview.js
diff options
context:
space:
mode:
authorFrankie <frankie.diamond@gmail.com>2017-04-05 15:30:07 +0800
committerGitHub <noreply@github.com>2017-04-05 15:30:07 +0800
commitdd6b4505f41b80a4f4cd3654412349b262c3cd76 (patch)
tree571a16459cffbe85f757e35df9c81a601959756b /ui/app/components/buy-button-subview.js
parent5d967eeebb9f3cf4c2d3fcfe0b74cf6e8440c3cb (diff)
parent1aac162b462424f5b6ce6685f337670368bd10b5 (diff)
downloadtangerine-wallet-browser-dd6b4505f41b80a4f4cd3654412349b262c3cd76.tar
tangerine-wallet-browser-dd6b4505f41b80a4f4cd3654412349b262c3cd76.tar.gz
tangerine-wallet-browser-dd6b4505f41b80a4f4cd3654412349b262c3cd76.tar.bz2
tangerine-wallet-browser-dd6b4505f41b80a4f4cd3654412349b262c3cd76.tar.lz
tangerine-wallet-browser-dd6b4505f41b80a4f4cd3654412349b262c3cd76.tar.xz
tangerine-wallet-browser-dd6b4505f41b80a4f4cd3654412349b262c3cd76.tar.zst
tangerine-wallet-browser-dd6b4505f41b80a4f4cd3654412349b262c3cd76.zip
Merge pull request #1309 from MetaMask/mascara2
Mascara - various fixes
Diffstat (limited to 'ui/app/components/buy-button-subview.js')
-rw-r--r--ui/app/components/buy-button-subview.js13
1 files changed, 7 insertions, 6 deletions
diff --git a/ui/app/components/buy-button-subview.js b/ui/app/components/buy-button-subview.js
index 2b1675b6d..6810303e1 100644
--- a/ui/app/components/buy-button-subview.js
+++ b/ui/app/components/buy-button-subview.js
@@ -104,7 +104,8 @@ BuyButtonSubview.prototype.render = function () {
}
BuyButtonSubview.prototype.formVersionSubview = function () {
- if (this.props.network === '1') {
+ const network = this.props.network
+ if (network === '1') {
if (this.props.buyView.formView.coinbase) {
return h(CoinbaseForm, this.props)
} else if (this.props.buyView.formView.shapeshift) {
@@ -123,15 +124,15 @@ BuyButtonSubview.prototype.formVersionSubview = function () {
marginBottom: '15px',
},
}, 'In order to access this feature, please switch to the Main Network'),
- ((this.props.network === '3') || (this.props.network === '42')) ? h('h3.text-transform-uppercase', 'or go to the') : null,
- (this.props.network === '3') ? h('button.text-transform-uppercase', {
- onClick: () => this.props.dispatch(actions.buyEth()),
+ ((network === '3') || (network === '42')) ? h('h3.text-transform-uppercase', 'or go to the') : null,
+ (network === '3') ? h('button.text-transform-uppercase', {
+ onClick: () => this.props.dispatch(actions.buyEth({ network })),
style: {
marginTop: '15px',
},
}, 'Ropsten Test Faucet') : null,
- (this.props.network === '42') ? h('button.text-transform-uppercase', {
- onClick: () => this.props.dispatch(actions.buyEth()),
+ (network === '42') ? h('button.text-transform-uppercase', {
+ onClick: () => this.props.dispatch(actions.buyEth({ network })),
style: {
marginTop: '15px',
},