diff options
author | Fabio Berger <me@fabioberger.com> | 2018-02-07 09:55:15 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-02-07 09:55:15 +0800 |
commit | 063c6b66b64330e0d86b7be91393606221ba5c83 (patch) | |
tree | 63883b32d3a90371d494aca5f2edbeb1148c7c2f /packages/website/ts/components | |
parent | 518efa8ad2765b3664ad1b5433c56a82cc7c50be (diff) | |
download | dexon-0x-contracts-063c6b66b64330e0d86b7be91393606221ba5c83.tar.gz dexon-0x-contracts-063c6b66b64330e0d86b7be91393606221ba5c83.tar.zst dexon-0x-contracts-063c6b66b64330e0d86b7be91393606221ba5c83.zip |
Only show faucet error if not on a testnet
Diffstat (limited to 'packages/website/ts/components')
-rw-r--r-- | packages/website/ts/components/token_balances.tsx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/packages/website/ts/components/token_balances.tsx b/packages/website/ts/components/token_balances.tsx index 301a332ce..6c3f4748b 100644 --- a/packages/website/ts/components/token_balances.tsx +++ b/packages/website/ts/components/token_balances.tsx @@ -504,9 +504,8 @@ export class TokenBalances extends React.Component<TokenBalancesProps, TokenBala case BalanceErrs.incorrectNetworkForFaucet: return ( <div> - Our faucet can only send test Ether to addresses on the {Networks.Kovan} testnet (networkId{' '} - {constants.NETWORK_ID_KOVAN}). Please make sure you are connected to the {Networks.Kovan}{' '} - testnet and try requesting ether again. + Our faucet can only send test Ether to addresses on testnets. Please make sure you are connected + to a testnet and try requesting again. </div> ); @@ -595,7 +594,7 @@ export class TokenBalances extends React.Component<TokenBalancesProps, TokenBala // If on another network other then the testnet our faucet serves test ether // from, we must show user an error message - if (this.props.blockchain.networkId !== constants.NETWORK_ID_KOVAN) { + if (!utils.isTestNetwork(this.props.blockchain.networkId)) { this.setState({ errorType: BalanceErrs.incorrectNetworkForFaucet, }); |