From 2c70bb8114f07312d951933c4c935cab53f2bdbd Mon Sep 17 00:00:00 2001 From: Jacob Pierce Date: Wed, 16 Nov 2022 09:16:29 -0800 Subject: [PATCH] use existing updateProgress method when handling marking as complete --- kolibri/plugins/learn/assets/src/views/ContentPage.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kolibri/plugins/learn/assets/src/views/ContentPage.vue b/kolibri/plugins/learn/assets/src/views/ContentPage.vue index 9edbbbd7ddb..7cea1c55c70 100644 --- a/kolibri/plugins/learn/assets/src/views/ContentPage.vue +++ b/kolibri/plugins/learn/assets/src/views/ContentPage.vue @@ -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); @@ -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')); })