fix: list index error on quiz submission

This commit is contained in:
Jannat Patel
2025-05-16 11:07:47 +05:30
parent 32172bc791
commit bd9600cc08
4 changed files with 70 additions and 44 deletions

View File

@@ -148,7 +148,7 @@ function submitEvaluation(close) {
unavailabilityMessage = false
}
toast.warn(__('Evaluator is unavailable'))
toast.warning(__('Evaluator is unavailable'))
},
})
}

View File

@@ -494,7 +494,7 @@ const getAnswers = () => {
const checkAnswer = () => {
let answers = getAnswers()
if (!answers.length) {
toast.warn(__('Please select an option'))
toast.warning(__('Please select an option'))
return
}