From da92f09acfa57e1f8fb5b1ba0111c0319d2ec6b5 Mon Sep 17 00:00:00 2001 From: "EXTERNAL Ankani Pandu Ranga Varma (Tibil , SX/EHC35)" Date: Fri, 3 Mar 2023 12:54:56 +0530 Subject: [PATCH] Issue #IQ-298 feat: Replaced the default score with the shuffle score which is provided in the quml player configuration --- .../src/lib/section-player/section-player.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/quml-library/src/lib/section-player/section-player.component.ts b/projects/quml-library/src/lib/section-player/section-player.component.ts index 6d91b72f..146fb342 100644 --- a/projects/quml-library/src/lib/section-player/section-player.component.ts +++ b/projects/quml-library/src/lib/section-player/section-player.component.ts @@ -435,7 +435,7 @@ export class SectionPlayerComponent implements OnChanges, AfterViewInit { const currentIndex = this.myCarousel.getCurrentSlideIndex() - 1; if (this.isShuffleQuestions) { - this.updateScoreBoard(currentIndex, 'correct', undefined, DEFAULT_SCORE); + this.updateScoreBoard(currentIndex, 'correct', undefined, this.parentConfig.metadata.shuffleScore); } } @@ -905,7 +905,7 @@ export class SectionPlayerComponent implements OnChanges, AfterViewInit { /* istanbul ignore else */ if (isCorrectAnswer) { if (this.isShuffleQuestions) { - return DEFAULT_SCORE; + return this.parentConfig.metadata.shuffleScore; } return this.questions[currentIndex].responseDeclaration[key].correctResponse.outcomes.SCORE ? this.questions[currentIndex].responseDeclaration[key].correctResponse.outcomes.SCORE :