Skip to content

Commit

Permalink
Merge pull request #11 from energicryptocurrency/develop
Browse files Browse the repository at this point in the history
fix unbound this in waitForSync()
  • Loading branch information
RyanLucchese authored Dec 20, 2017
2 parents 790bd00 + 562e9ed commit 4b28a2f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@ class App extends Component
while (this.apiSyncState != 2) await sleep(100);
}

waitForSync = waitForSync.bind(this);
waitForSync();
let gov = this.state.governanceInfo;
let block = this.state.bestBlock;
Expand Down

0 comments on commit 4b28a2f

Please sign in to comment.