From 68ec7f162f9b7a84f3cd9cad3a0baea41a5425cf Mon Sep 17 00:00:00 2001 From: Liana Harris <46411498+LianaHarris360@users.noreply.github.com> Date: Tue, 12 Nov 2024 14:28:26 -0600 Subject: [PATCH] Update setContentNodeProgress if statement with >= --- .../learn/assets/src/composables/useContentNodeProgress.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kolibri/plugins/learn/assets/src/composables/useContentNodeProgress.js b/kolibri/plugins/learn/assets/src/composables/useContentNodeProgress.js index 88f9353d6b7..acee6c4093a 100644 --- a/kolibri/plugins/learn/assets/src/composables/useContentNodeProgress.js +++ b/kolibri/plugins/learn/assets/src/composables/useContentNodeProgress.js @@ -17,7 +17,7 @@ export function setContentNodeProgress(progress) { // Avoid setting stale progress data - assume that progress increases monotonically if ( !contentNodeProgressMap[progress.content_id] || - progress.progress > contentNodeProgressMap[progress.content_id] + progress.progress >= contentNodeProgressMap[progress.content_id] ) { set(contentNodeProgressMap, progress.content_id, progress.progress); // this should have been conditional