From 5789688eabe239c1b1fc3c1b4068aefae20db4b4 Mon Sep 17 00:00:00 2001 From: Carlos Mesquita Date: Mon, 19 Aug 2024 17:24:10 +0100 Subject: [PATCH] Previously commented a required line --- src/components/Exercises/FillBlanks/index.tsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/components/Exercises/FillBlanks/index.tsx b/src/components/Exercises/FillBlanks/index.tsx index 19439791..44f8d693 100644 --- a/src/components/Exercises/FillBlanks/index.tsx +++ b/src/components/Exercises/FillBlanks/index.tsx @@ -62,7 +62,8 @@ const FillBlanks: React.FC = ({ return solution.toLowerCase() === option.toLowerCase(); } else if ('letter' in option) { return solution.toLowerCase() === option.word.toLowerCase(); - } /*else if ('options' in option) { + } else if ('options' in option) { + /* if (shuffleMaps.length !== 0) { const shuffleMap = shuffleMaps.find((map) => map.id == x.id) if (!shuffleMap) { @@ -70,10 +71,10 @@ const FillBlanks: React.FC = ({ } const original = shuffleMap[x.solution as keyof typeof shuffleMap]; return solution.toLowerCase() === (option.options[original as keyof typeof option.options] || '').toLowerCase(); - } + }*/ return solution.toLowerCase() === (option.options[x.solution as keyof typeof option.options] || '').toLowerCase(); - }*/ + } return false; }).length;