diff --git a/kolibri/plugins/learn/assets/src/views/ContentPage.vue b/kolibri/plugins/learn/assets/src/views/ContentPage.vue index fe74972596d..2fdd274a25d 100644 --- a/kolibri/plugins/learn/assets/src/views/ContentPage.vue +++ b/kolibri/plugins/learn/assets/src/views/ContentPage.vue @@ -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); @@ -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')); })