mirror of
https://github.com/status-im/snt-voting.git
synced 2025-02-23 15:48:10 +00:00
do not show web3 provider in dev enviroments
This commit is contained in:
parent
5e4915f1a4
commit
bc7dabfc92
@ -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 })});
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user