Solved the WriteBlanks problem
This commit is contained in:
@@ -97,6 +97,8 @@ export default function WriteBlanksSolutions({
|
|||||||
const userSolution = userSolutions.find((x) => x.id === id);
|
const userSolution = userSolutions.find((x) => x.id === id);
|
||||||
const solution = solutions.find((x) => x.id.toString() === id)!;
|
const solution = solutions.find((x) => x.id.toString() === id)!;
|
||||||
|
|
||||||
|
console.log(id, userSolution, solution);
|
||||||
|
|
||||||
return <Blank userSolution={userSolution?.solution} maxWords={maxWords} id={id} solutions={solution.solution} disabled />;
|
return <Blank userSolution={userSolution?.solution} maxWords={maxWords} id={id} solutions={solution.solution} disabled />;
|
||||||
})}
|
})}
|
||||||
</span>
|
</span>
|
||||||
@@ -115,7 +117,8 @@ export default function WriteBlanksSolutions({
|
|||||||
))}
|
))}
|
||||||
</span>
|
</span>
|
||||||
<span className="bg-mti-gray-smoke rounded-xl px-5 py-6">
|
<span className="bg-mti-gray-smoke rounded-xl px-5 py-6">
|
||||||
{text.split("\\n").map((line, index) => (
|
{userSolutions &&
|
||||||
|
text.split("\\n").map((line, index) => (
|
||||||
<p key={index}>
|
<p key={index}>
|
||||||
{renderLines(line)}
|
{renderLines(line)}
|
||||||
<br />
|
<br />
|
||||||
|
|||||||
Reference in New Issue
Block a user