@nualang/nualang-ui-components 0.1.1238 → 0.1.1240

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.
@@ -61,7 +61,7 @@ function Exercise({
61
61
  translation,
62
62
  listening,
63
63
  pronunciation
64
- } = completion;
64
+ } = completion ?? {};
65
65
  const courseSectionTopicProgressQuery = _Queries.progress.useTopicMemberProgress(async (courseId, sectionId, topicId, memberId, returnvalues) => {
66
66
  const memberProgress = await (0, _Progress.getCourseSectionTopicProgress)(courseId, sectionId, topicId, memberId, returnvalues);
67
67
  const formattedProgress = await progressHelpers.formatProgress(memberProgress.Items, username, preferred_username);
@@ -853,7 +853,7 @@ function Classroom({
853
853
  onClick: handleReturnToClassrooms
854
854
  })]
855
855
  }, `tab-content-courses`)
856
- }, ...(isUserInternal && process.env.REACT_APP_STAGE === "dev" ? [{
856
+ }, ...(isUserInternal || process.env.REACT_APP_STAGE === "dev" ? [{
857
857
  label: t("assignments"),
858
858
  disabled: isMember && isSubscriptionExpired,
859
859
  id: "Assignments",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nualang/nualang-ui-components",
3
- "version": "0.1.1238",
3
+ "version": "0.1.1240",
4
4
  "main": "dist/index.js",
5
5
  "files": [
6
6
  "dist",