From 348fd2268e698db867b54bca7efd51384ba9225a Mon Sep 17 00:00:00 2001 From: Mirza Widihananta Date: Sat, 11 Nov 2023 07:24:46 +0700 Subject: [PATCH] fix: lower case correct_answers before comparison --- .../quiz_exercise/presentation/bloc/quiz_exercise_cubit.dart | 1 + 1 file changed, 1 insertion(+) diff --git a/app/lib/features/quiz_exercise/presentation/bloc/quiz_exercise_cubit.dart b/app/lib/features/quiz_exercise/presentation/bloc/quiz_exercise_cubit.dart index b288e88..478c306 100644 --- a/app/lib/features/quiz_exercise/presentation/bloc/quiz_exercise_cubit.dart +++ b/app/lib/features/quiz_exercise/presentation/bloc/quiz_exercise_cubit.dart @@ -176,6 +176,7 @@ class QuizExerciseCubit extends Cubit { if (currentProblem.type == 'SHORT_ANSWER' && currentProblem.answer.correctAnswer + .map((answer) => answer.toLowerCase()) .contains(shortAnswer.trim().toLowerCase())) { verdict = 'CORRECT'; }