Previously commented a required line

This commit is contained in:
Carlos Mesquita
2024-08-19 17:24:10 +01:00
parent 37e356572b
commit 5789688eab

View File

@@ -62,7 +62,8 @@ const FillBlanks: React.FC<FillBlanksExercise & CommonProps> = ({
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<FillBlanksExercise & CommonProps> = ({
}
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;