From 2592cca2f356f968b86db04ceef7ac66df46f568 Mon Sep 17 00:00:00 2001 From: soufiane Date: Tue, 23 Jan 2024 12:30:08 +0100 Subject: [PATCH] wait #6655 @0:20 --- js/quiz.screen.outro.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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); -- 2.39.5