From 02320b94847526fb659932478d850143fddc493a Mon Sep 17 00:00:00 2001 From: Tiago Ribeiro Date: Sun, 28 Jul 2024 11:22:46 +0100 Subject: [PATCH] Tiny issue --- src/pages/(generation)/LevelGeneration.tsx | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/pages/(generation)/LevelGeneration.tsx b/src/pages/(generation)/LevelGeneration.tsx index a4469654..802d2230 100644 --- a/src/pages/(generation)/LevelGeneration.tsx +++ b/src/pages/(generation)/LevelGeneration.tsx @@ -334,14 +334,15 @@ const LevelGeneration = () => { } if (part.type === "blank_space_text") { - const exercise: FillBlanksExercise = { + console.log({currentExercise}); + + const exercise: WriteBlanksExercise = { id: v4(), - prompt: "Complete the summary below. Click a blank to select the corresponding word for it.", - allowRepetition: false, + prompt: "Complete the text below.", text: currentExercise.text, - words: currentExercise.words, - solutions: currentExercise.words.map((x: any) => ({id: x.id, solution: x.text})), - type: "fillBlanks", + maxWords: 3, + solutions: currentExercise.words.map((x: any) => ({id: x.id, solution: [x.text]})), + type: "writeBlanks", userSolutions: [], };