Skip to content

Commit

Permalink
Store getWeb3 promise instead of its resolved/rejected promise
Browse files Browse the repository at this point in the history
  • Loading branch information
fernandomg committed Dec 4, 2018
1 parent bab1e30 commit 2cfd7f1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/stores/Web3Store.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ class Web3Store {
this.alertStore = rootStore.alertStore;
this.rootStore = rootStore

this.getWeb3Promise = getWeb3().then((web3Config) => {
this.getWeb3Promise = getWeb3()

this.getWeb3Promise.then((web3Config) => {
this.setWeb3State(web3Config)
this.getBalances(false)
setInterval(() => {
Expand Down

0 comments on commit 2cfd7f1

Please sign in to comment.