From 4996417218ded39d4095c3fec228ab3540a92960 Mon Sep 17 00:00:00 2001 From: Joao Ramos Date: Wed, 17 Jul 2024 23:00:16 +0100 Subject: [PATCH] Fixed sentence header mapping --- src/components/Generation/match.sentences.edit.tsx | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/components/Generation/match.sentences.edit.tsx b/src/components/Generation/match.sentences.edit.tsx index 78ab3a95..b9e2d029 100644 --- a/src/components/Generation/match.sentences.edit.tsx +++ b/src/components/Generation/match.sentences.edit.tsx @@ -39,17 +39,14 @@ const MatchSentencesEdit = (props: Props) => { label={`Sentence ${index + 1}`} name="sentence" required - value={sentence.sentence.heading} + value={sentence.sentence} onChange={(value) => updateExercise({ sentences: exercise.sentences.map((iSol) => iSol.id === sentence.id ? { ...iSol, - sentence: { - ...iSol.sentence, - heading: value, - }, + sentence: value, } : iSol ),