eat-js-sdk 2.0.20 → 2.0.22
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.
|
@@ -6710,7 +6710,7 @@ function Sd(e, t, r) {
|
|
|
6710
6710
|
}));
|
|
6711
6711
|
const l = s.isValid, c = _d(t, n), d = Cd(t, n, c), p = ga(n);
|
|
6712
6712
|
let h = !1;
|
|
6713
|
-
return t.mode === Q.INTERACTIVE && (h = i), t.mode === Q.SESSION && t.isFinished && (h = !
|
|
6713
|
+
return t.mode === Q.INTERACTIVE && (h = i), t.mode === Q.SESSION && t.isFinished && (h = !0), {
|
|
6714
6714
|
showFeedback: h,
|
|
6715
6715
|
isAllCorrect: l,
|
|
6716
6716
|
isSkipped: o,
|
|
@@ -7856,7 +7856,7 @@ const dn = (e) => Object.keys(e.options), Qo = (e, t) => e.options[t]?.correct_a
|
|
|
7856
7856
|
if (!Ei(t))
|
|
7857
7857
|
return "";
|
|
7858
7858
|
const { correct: r, total: n } = Xo(e, t);
|
|
7859
|
-
return r === n ? e.feedback.correct
|
|
7859
|
+
return r === n ? e.feedback.correct : e.feedback.incorrect;
|
|
7860
7860
|
}, wa = (e) => dn(e).map((r) => ({ id: r, choice: "" })), Jo = (e) => dn(e).map((r) => ({
|
|
7861
7861
|
id: r,
|
|
7862
7862
|
choice: ru(e, r)
|