mirror of
https://github.com/oceanprotocol/commons.git
synced 2023-03-15 18:03:00 +01:00
proper fix
This commit is contained in:
parent
006d292a91
commit
15ac3d30a6
@ -71,7 +71,7 @@ class App extends Component<{}, AppState> {
|
|||||||
if (accounts.length === 0 && window.ethereum) {
|
if (accounts.length === 0 && window.ethereum) {
|
||||||
await window.ethereum.enable()
|
await window.ethereum.enable()
|
||||||
const newAccounts = await web3.eth.getAccounts()
|
const newAccounts = await web3.eth.getAccounts()
|
||||||
if (accounts.length > 0) {
|
if (newAccounts.length > 0) {
|
||||||
this.setState({
|
this.setState({
|
||||||
isLogged: true,
|
isLogged: true,
|
||||||
isWeb3: true,
|
isWeb3: true,
|
||||||
|
Loading…
Reference in New Issue
Block a user