Merge branch 'develop' of https://bitbucket.org/ecropdev/ielts-ui into feature/level-file-upload

This commit is contained in:
Carlos Mesquita
2024-08-20 19:37:06 +01:00
37 changed files with 5344 additions and 1817 deletions

View File

@@ -28,6 +28,7 @@ export default function FillBlanksSolutions({
const total = text.match(/({{\d+}})/g)?.length || 0;
const correct = correctUserSolutions!.filter((x) => {
const solution = solutions.find((y) => x.id.toString() === y.id.toString())?.solution;
console.log(solution);
if (!solution) return false;
const option = words.find((w) => {
@@ -36,7 +37,7 @@ export default function FillBlanksSolutions({
} else if ('letter' in w) {
return w.word.toLowerCase() === x.solution.toLowerCase();
} else {
return w.id === x.id;
return w.id.toString() === x.id.toString();
}
});
if (!option) return false;