fix: quiz submission report issue

This commit is contained in:
Jannat Patel
2024-08-27 10:46:06 +05:30
parent 3b8ff171f4
commit f8b4ff4bd3
2 changed files with 5 additions and 16 deletions

View File

@@ -439,7 +439,7 @@ const checkAnswer = () => {
const addToLocalStorage = () => {
let quizData = JSON.parse(localStorage.getItem(quiz.data.title))
let questionData = {
question_index: activeQuestion.value,
question_name: currentQuestion.value,
answer: getAnswers().join(),
is_correct: showAnswers.filter((answer) => {
return answer != undefined