Merged in feature/level-file-upload (pull request #71)
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();
|
||||
} 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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user