eat-js-sdk 1.0.53 → 1.0.54
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -19230,7 +19230,7 @@
|
|
|
19230
19230
|
const { correct_answer: correctAnswer, typein_type: typeinType } = data.interaction;
|
|
19231
19231
|
scoringMetadata = {
|
|
19232
19232
|
hasAnswer: true,
|
|
19233
|
-
answer: typeinType === TYPEIN_TYPE_SHORT ? correctAnswer[0][0] : typeinType === TYPEIN_TYPE_INLINE ? correctAnswer : correctAnswer[0]
|
|
19233
|
+
answer: typeinType === TYPEIN_TYPE_SHORT ? correctAnswer[0][0] : typeinType === TYPEIN_TYPE_INLINE ? correctAnswer : correctAnswer[0].sample_answer[0]
|
|
19234
19234
|
};
|
|
19235
19235
|
$$invalidate(0, sessionData = { ...sessionData, scoringMetadata });
|
|
19236
19236
|
if (isPreviewModeInteractive) {
|