From 8d2afccdc0e355c2cf5425de5c21042b08989393 Mon Sep 17 00:00:00 2001 From: Kevin Serrano Date: Tue, 22 Nov 2016 10:13:57 -0800 Subject: [PATCH] Ropsten has sole access to the faucet. --- app/scripts/metamask-controller.js | 2 +- ui/app/components/buy-button-subview.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/scripts/metamask-controller.js b/app/scripts/metamask-controller.js index 82ad8f9c4..631411bed 100644 --- a/app/scripts/metamask-controller.js +++ b/app/scripts/metamask-controller.js @@ -364,7 +364,7 @@ module.exports = class MetamaskController { var network = this.idStore._currentState.network var url = `https://buy.coinbase.com/?code=9ec56d01-7e81-5017-930c-513daa27bb6a&amount=${amount}&address=${address}&crypto_currency=ETH` - if ((network === '2') || (network === '3')) { + if (network === '3') { url = 'https://faucet.metamask.io/' } diff --git a/ui/app/components/buy-button-subview.js b/ui/app/components/buy-button-subview.js index ad1967616..35eda647e 100644 --- a/ui/app/components/buy-button-subview.js +++ b/ui/app/components/buy-button-subview.js @@ -113,9 +113,9 @@ BuyButtonSubview.prototype.formVersionSubview = function () { style: { width: '225px', }, - }, 'In order to access this feature please switch to the Main Network'), - h('h3.text-transform-uppercase', 'or:'), - (this.props.network === '2' || this.props.network === '3') ? h('button.text-transform-uppercase', { + }, 'In order to access this feature, please switch to the Main Network'), + (this.props.network === '3') ? h('h3.text-transform-uppercase', 'or:') : null, + (this.props.network === '3') ? h('button.text-transform-uppercase', { onClick: () => this.props.dispatch(actions.buyEth()), style: { marginTop: '15px',