Skip to content

Commit 6344df1

Browse files
fix
1 parent c061d94 commit 6344df1

File tree

1 file changed

+6
-3
lines changed
  • services/quizzes/src/components/exercise-service-views/AnswerExercise/impl-by-quiz-item-type

1 file changed

+6
-3
lines changed

services/quizzes/src/components/exercise-service-views/AnswerExercise/impl-by-quiz-item-type/Timeline.tsx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ const Timeline: React.FunctionComponent<
220220
const choices = [
221221
{
222222
timelineItemId: timelineItem.itemId,
223-
chosenEventId: event.target.value,
223+
chosenEventId: event.currentTarget.value,
224224
},
225225
]
226226
setQuizItemAnswerState({
@@ -229,7 +229,7 @@ const Timeline: React.FunctionComponent<
229229
timelineChoices: [
230230
{
231231
timelineItemId: timelineItem.itemId,
232-
chosenEventId: event.target.value,
232+
chosenEventId: event.currentTarget.value,
233233
},
234234
],
235235
valid: validate(choices, quizItem.timelineItems),
@@ -242,7 +242,10 @@ const Timeline: React.FunctionComponent<
242242
) || []
243243
const newTimelineChoices: TimelineChoice[] = [
244244
...timelineChoicesWithoutThisOne,
245-
{ timelineItemId: timelineItem.itemId, chosenEventId: event.target.value },
245+
{
246+
timelineItemId: timelineItem.itemId,
247+
chosenEventId: event.currentTarget.value,
248+
},
246249
]
247250

248251
setQuizItemAnswerState({

0 commit comments

Comments
 (0)