From a549ba4e010db12bc81ea449cad2d7bd7ecda151 Mon Sep 17 00:00:00 2001 From: Tom <20648924+moT01@users.noreply.github.com> Date: Tue, 14 Jan 2025 10:08:15 -0600 Subject: [PATCH] fix(client): ignore capitalization in fill in the blanks (#58089) --- client/src/templates/Challenges/fill-in-the-blank/show.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/src/templates/Challenges/fill-in-the-blank/show.tsx b/client/src/templates/Challenges/fill-in-the-blank/show.tsx index aaa7cb6ea5e..ffea3a48f7d 100644 --- a/client/src/templates/Challenges/fill-in-the-blank/show.tsx +++ b/client/src/templates/Challenges/fill-in-the-blank/show.tsx @@ -138,7 +138,8 @@ const ShowFillInTheBlank = ({ const newAnswersCorrect = userAnswers.map( (userAnswer, i) => !!userAnswer && - replaceAppleQuotes(userAnswer.trim()) === blankAnswers[i] + replaceAppleQuotes(userAnswer.trim()).toLowerCase() === + blankAnswers[i].toLowerCase() ); setAnswersCorrect(newAnswersCorrect); const hasWrongAnswer = newAnswersCorrect.some(a => a === false);