diff --git a/src/components/Course/QuizView.tsx b/src/components/Course/QuizView.tsx
index a0cc97059..17e58cddc 100644
--- a/src/components/Course/QuizView.tsx
+++ b/src/components/Course/QuizView.tsx
@@ -76,9 +76,21 @@ export function QuizView(props: QuizViewProps) {
})}
-
+
+
+ {isSubmitted && (
+
+ {correctAnswerCount} out of {questions.length} questions{' '}
+ {correctAnswerCount > 1 ? 'were' : 'was'} correct
+
+ )}
+
+ {!isAllAnswered && (
+ Answer all questions to submit
+ )}
+
-
- {isSubmitted && (
-
-
- You got {correctAnswerCount} out of {questions.length} questions
- right
-
-
- )}
@@ -154,7 +157,7 @@ export function QuizItem(props: QuizItemProps) {
)}
- {title}
+ {title}
{options.map((option, index) => {
@@ -195,8 +198,8 @@ export function QuizOption(props: QuizOptionProps) {
className={cn(
'flex items-start gap-2 rounded-xl p-2 text-base disabled:cursor-not-allowed',
status === 'selected' && 'bg-gray-600 text-white',
- status === 'wrong' && 'text-black bg-red-200',
- status === 'correct' && 'text-black bg-green-200',
+ status === 'wrong' && 'bg-red-200 text-black',
+ status === 'correct' && 'bg-green-200 text-black',
status === 'default' && 'hover:bg-gray-100',
)}
disabled={disabled}