do not show web3 provider in dev enviroments

This commit is contained in:
Barry Gitarts 2018-09-13 11:40:39 -04:00
parent 5e4915f1a4
commit bc7dabfc92

View File

@ -31,7 +31,7 @@ class App extends React.Component {
this._setAccounts();
}
web3.eth.net.getId((err, netId) => {
if (netId !== MAINNET) this.setState({ web3Provider: false})
if (netId !== MAINNET && netId < 5) this.setState({ web3Provider: false})
})
fetchIdeas().then(ideaSites => { this.setState({ ideaSites })});
})