Skip to content

Commit

Permalink
use existing updateProgress method when handling marking as complete
Browse files Browse the repository at this point in the history
  • Loading branch information
nucleogenesis committed Nov 16, 2022
1 parent af9c609 commit dca8d28
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 @@ -193,7 +193,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 @@ -206,7 +206,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 dca8d28

Please sign in to comment.