Tiny issue

This commit is contained in:
Tiago Ribeiro
2024-07-28 11:22:46 +01:00
parent fb077fd8cc
commit 02320b9484

View File

@@ -334,14 +334,15 @@ const LevelGeneration = () => {
} }
if (part.type === "blank_space_text") { if (part.type === "blank_space_text") {
const exercise: FillBlanksExercise = { console.log({currentExercise});
const exercise: WriteBlanksExercise = {
id: v4(), id: v4(),
prompt: "Complete the summary below. Click a blank to select the corresponding word for it.", prompt: "Complete the text below.",
allowRepetition: false,
text: currentExercise.text, text: currentExercise.text,
words: currentExercise.words, maxWords: 3,
solutions: currentExercise.words.map((x: any) => ({id: x.id, solution: x.text})), solutions: currentExercise.words.map((x: any) => ({id: x.id, solution: [x.text]})),
type: "fillBlanks", type: "writeBlanks",
userSolutions: [], userSolutions: [],
}; };