Skip to content

Commit

Permalink
Fix infinite loading bug
Browse files Browse the repository at this point in the history
  • Loading branch information
mnlkrs committed Apr 19, 2017
1 parent 46bc377 commit 506fd64
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mobileApp",
"version": "0.0.6",
"version": "0.0.7",
"private": true,
"scripts": {
"start": "node node_modules/react-native/local-cli/cli.js start",
Expand Down
2 changes: 1 addition & 1 deletion src/lib/PlanFetcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class PlanFetcher extends EventEmitter {
}

async fetchPlan(when) {
const course = this.course || this.updateCourse();
const course = this.course || await this.updateCourse();
let URL = `${API_URL}vplan/${when}/`;
URL += course && course !== 'Alle' ? course.substring(0, 2) : '';

Expand Down

0 comments on commit 506fd64

Please sign in to comment.