Previously commented a required line
This commit is contained in:
@@ -62,7 +62,8 @@ const FillBlanks: React.FC<FillBlanksExercise & CommonProps> = ({
|
|||||||
return solution.toLowerCase() === option.toLowerCase();
|
return solution.toLowerCase() === option.toLowerCase();
|
||||||
} else if ('letter' in option) {
|
} else if ('letter' in option) {
|
||||||
return solution.toLowerCase() === option.word.toLowerCase();
|
return solution.toLowerCase() === option.word.toLowerCase();
|
||||||
} /*else if ('options' in option) {
|
} else if ('options' in option) {
|
||||||
|
/*
|
||||||
if (shuffleMaps.length !== 0) {
|
if (shuffleMaps.length !== 0) {
|
||||||
const shuffleMap = shuffleMaps.find((map) => map.id == x.id)
|
const shuffleMap = shuffleMaps.find((map) => map.id == x.id)
|
||||||
if (!shuffleMap) {
|
if (!shuffleMap) {
|
||||||
@@ -70,10 +71,10 @@ const FillBlanks: React.FC<FillBlanksExercise & CommonProps> = ({
|
|||||||
}
|
}
|
||||||
const original = shuffleMap[x.solution as keyof typeof shuffleMap];
|
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[original as keyof typeof option.options] || '').toLowerCase();
|
||||||
}
|
}*/
|
||||||
|
|
||||||
return solution.toLowerCase() === (option.options[x.solution as keyof typeof option.options] || '').toLowerCase();
|
return solution.toLowerCase() === (option.options[x.solution as keyof typeof option.options] || '').toLowerCase();
|
||||||
}*/
|
}
|
||||||
return false;
|
return false;
|
||||||
}).length;
|
}).length;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user