Skip to content

Commit

Permalink
fix: lower case correct_answers before comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
atnanahidiw committed Nov 11, 2023
1 parent ef7fd46 commit 348fd22
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ class QuizExerciseCubit extends Cubit<QuizExerciseState> {

if (currentProblem.type == 'SHORT_ANSWER' &&
currentProblem.answer.correctAnswer
.map((answer) => answer.toLowerCase())
.contains(shortAnswer.trim().toLowerCase())) {
verdict = 'CORRECT';
}
Expand Down

0 comments on commit 348fd22

Please sign in to comment.