Skip to content

Commit

Permalink
Merge pull request #158 from poanetwork/154-eth-mainnet-shows-2-dai-b…
Browse files Browse the repository at this point in the history
…y-default-if-the-user-is-not-logged-in-to-metamask-or-nifty-wallet

Prevent displaying 0x0 address' balance when there's no wallet available
  • Loading branch information
akolotov authored Dec 4, 2018
2 parents bab1e30 + 2cfd7f1 commit b82c2a8
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 b82c2a8

Please sign in to comment.