@nualang/nualang-ui-components 0.1.1286 → 0.1.1287

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.
@@ -1150,7 +1150,7 @@ function Exercises(props) {
1150
1150
  }
1151
1151
  }, [bots, botsStringified]);
1152
1152
  (0, _react.useEffect)(() => {
1153
- if (!isChallengeModeStudent && !isCreator) {
1153
+ if (!isChallengeModeStudent && !isCreator && !parentClassroom?.isCreator) {
1154
1154
  setBotsArray(bots.filter(bot => !bot.isChallengeBot || bot.isChallengeBot === false));
1155
1155
  }
1156
1156
  }, [bots, isChallengeModeStudent, isCreator]);
@@ -293,7 +293,9 @@ const calcTopicCompletions = (topic, completions = [], isSectionHidden, assignme
293
293
  });
294
294
  const bots = topic.bots.map(bot => {
295
295
  const isUnassignedBot = assignmentExercises ? assignmentExercises && !assignmentExercises.some(e => e.botId === bot.botId) : false;
296
- if (isBotsHidden || bot.isBotHidden || isSectionHidden || topic.isTopicHidden || isUnassignedBot) {
296
+ if (isBotsHidden || bot.isBotHidden || bot.isChallengeBot ||
297
+ // Don't count challenge bots until we can identify if they're visible for the particular student
298
+ isSectionHidden || topic.isTopicHidden || isUnassignedBot) {
297
299
  return {
298
300
  ...bot,
299
301
  completedCount: 0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nualang/nualang-ui-components",
3
- "version": "0.1.1286",
3
+ "version": "0.1.1287",
4
4
  "main": "dist/index.js",
5
5
  "files": [
6
6
  "dist",