From: soufiane Date: Tue, 23 Jan 2024 11:30:08 +0000 (+0100) Subject: wait #6655 @0:20 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=2592cca2f356f968b86db04ceef7ac66df46f568;p=fluidbook-toolbox-quiz.git wait #6655 @0:20 --- diff --git a/js/quiz.screen.outro.js b/js/quiz.screen.outro.js index 5b51780..4e56a64 100644 --- a/js/quiz.screen.outro.js +++ b/js/quiz.screen.outro.js @@ -218,12 +218,15 @@ QuizScreenOutro.prototype = { let answersUser = this.quiz.score.answers; let wrongIcon = getSpriteIcon("quiz-wrong"); + console.log(status) + console.log(this.quiz.score) + reviewList = reviewList.map((c, i) => { return { 'question': c['question'], 'type': c['type'], 'correctAnswers': c['answers'].filter((c__,k) => { //on filtre les réponses - let status_ = answersUser[i] + let status_ = c['answers'] if(c['type'] === "multiple") { status_ = parseInt(c['answers'][k].correct) === 1; } @@ -239,7 +242,7 @@ QuizScreenOutro.prototype = { if(c['type'] === "match" && !quiz.score.isPassed() && c['answers'][answersUser[i][k_]] > 0) { c_['proposition'] = c['answers'][answersUser[i][k_]]['proposition'] } - c_['status'] = status[i].answers[[answersUser[i][k_]]] + c_['status'] = status[i].answers[k_] return c_ }), 'status': status[i].ok, @@ -247,6 +250,8 @@ QuizScreenOutro.prototype = { } }) + console.log('reviewList',reviewList) + let html = ''; for (var i in reviewList) { i = parseInt(i);