l-min-components 1.7.1589 → 1.7.1590

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "l-min-components",
3
- "version": "1.7.1589",
3
+ "version": "1.7.1590",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "src/assets",
@@ -454,6 +454,13 @@ const quixSelectedModel = (response, aiData) => {
454
454
  );
455
455
  objectData["grammar"] = [findData];
456
456
  }
457
+ if (aiData?.comprehension?.length && aiData?.comprehension) {
458
+ const attemptResp = aiData?.comprehension?.[0]?.attempt_data_batch?.[0];
459
+
460
+ if (attemptResp?.recording?.id === audioId || attemptResp?.id === audioId) {
461
+ objectData["comprehension"] = aiData?.comprehension;
462
+ }
463
+ }
457
464
 
458
465
  return objectData;
459
466
  };
@@ -16,6 +16,7 @@ const QuizNewWritten = ({
16
16
  answerData,
17
17
  isPersonal,
18
18
  defaultSelected = 1,
19
+ setToggle,
19
20
  }) => {
20
21
  const [selected, setSelected] = useState(defaultSelected);
21
22
  const { quizResponses, setupAnalysis, quizWrittenSelectedModel } =