From 063c6b66b64330e0d86b7be91393606221ba5c83 Mon Sep 17 00:00:00 2001
From: Fabio Berger <me@fabioberger.com>
Date: Tue, 6 Feb 2018 17:55:15 -0800
Subject: Only show faucet error if not on a testnet

---
 packages/website/ts/components/token_balances.tsx | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

(limited to 'packages/website/ts/components/token_balances.tsx')

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,
             });
-- 
cgit v1.2.3

