Skip to content

Commit

Permalink
Merge pull request #9837 from nucleogenesis/mark-as-complete-fix--again
Browse files Browse the repository at this point in the history
Mark as complete fix  again
  • Loading branch information
nucleogenesis authored Nov 16, 2022
2 parents 173ff79 + 2c70bb8 commit ae34cb2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kolibri/plugins/learn/assets/src/views/ContentPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@
this.updateContentSession({ progress, interaction }).then(this.cacheProgress);
},
updateProgress(progress) {
this.updateContentSession({ progress }).then(this.cacheProgress);
return this.updateContentSession({ progress }).then(this.cacheProgress);
},
addProgress(progressDelta) {
this.updateContentSession({ progressDelta }).then(this.cacheProgress);
Expand All @@ -204,7 +204,7 @@
},
handleMarkAsComplete() {
this.hideMarkAsCompleteModal();
return this.updateContentSession({ progress: 1 })
return this.updateProgress(1.0)
.then(() => {
this.$store.dispatch('createSnackbar', this.learnString('resourceCompletedLabel'));
})
Expand Down

0 comments on commit ae34cb2

Please sign in to comment.