diff --git a/src/components/Solutions/WriteBlanks.tsx b/src/components/Solutions/WriteBlanks.tsx index f30d517b..3da64b69 100644 --- a/src/components/Solutions/WriteBlanks.tsx +++ b/src/components/Solutions/WriteBlanks.tsx @@ -97,6 +97,8 @@ export default function WriteBlanksSolutions({ const userSolution = userSolutions.find((x) => x.id === id); const solution = solutions.find((x) => x.id.toString() === id)!; + console.log(id, userSolution, solution); + return ; })} @@ -115,12 +117,13 @@ export default function WriteBlanksSolutions({ ))} - {text.split("\\n").map((line, index) => ( -

- {renderLines(line)} -
-

- ))} + {userSolutions && + text.split("\\n").map((line, index) => ( +

+ {renderLines(line)} +
+

+ ))}