aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-02-07 09:55:15 +0800
committerFabio Berger <me@fabioberger.com>2018-02-07 09:55:15 +0800
commit063c6b66b64330e0d86b7be91393606221ba5c83 (patch)
tree63883b32d3a90371d494aca5f2edbeb1148c7c2f /packages
parent518efa8ad2765b3664ad1b5433c56a82cc7c50be (diff)
downloaddexon-sol-tools-063c6b66b64330e0d86b7be91393606221ba5c83.tar
dexon-sol-tools-063c6b66b64330e0d86b7be91393606221ba5c83.tar.gz
dexon-sol-tools-063c6b66b64330e0d86b7be91393606221ba5c83.tar.bz2
dexon-sol-tools-063c6b66b64330e0d86b7be91393606221ba5c83.tar.lz
dexon-sol-tools-063c6b66b64330e0d86b7be91393606221ba5c83.tar.xz
dexon-sol-tools-063c6b66b64330e0d86b7be91393606221ba5c83.tar.zst
dexon-sol-tools-063c6b66b64330e0d86b7be91393606221ba5c83.zip
Only show faucet error if not on a testnet
Diffstat (limited to 'packages')
-rw-r--r--packages/website/ts/components/token_balances.tsx7
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,
});