fix: list index error on quiz submission
This commit is contained in:
@@ -148,7 +148,7 @@ function submitEvaluation(close) {
|
||||
unavailabilityMessage = false
|
||||
}
|
||||
|
||||
toast.warn(__('Evaluator is unavailable'))
|
||||
toast.warning(__('Evaluator is unavailable'))
|
||||
},
|
||||
})
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user