AshameTheDestroyer commited on
Commit
d25fbba
·
1 Parent(s): 88aa31b

Checkbox Message Added.

Browse files
frontend/app/components/question-card.tsx CHANGED
@@ -75,6 +75,8 @@ export function QuestionCard({
75
  ) : "cursor-pointer")}>{option.text}</Label.Label>
76
  </div>
77
  ))}
 
 
78
  </div>
79
  ),
80
  }[question.type]}
 
75
  ) : "cursor-pointer")}>{option.text}</Label.Label>
76
  </div>
77
  ))}
78
+ {isStatic && question.correct_options && question.correct_options.some(co => !(answers[question.id] || []).includes(co)) &&
79
+ <div className="text-red-600 dark:text-red-400 ml-2">(You did not select all correct answers)</div>}
80
  </div>
81
  ),
82
  }[question.type]}