odaptos_design_system 1.4.199 → 1.4.201

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.
@@ -9611,7 +9611,7 @@ const Chat = ({
9611
9611
  return /*#__PURE__*/React__default.createElement(Task, {
9612
9612
  key: realTask._id,
9613
9613
  taskNumber: `${realTask.type === 'task' ? 'Task' : realTask.type === 'question' ? 'Question' : 'Scenario'} #${realTask.index}`,
9614
- taskTitle: realTask.description,
9614
+ taskTitle: realTask.type === 'scenario' ? idsTasksAlreadySent.includes(realTask._id) && realCurrentTask._id !== realTask._id || disabledTask ? realTask.name ?? realTask.description : realCurrentTask && realCurrentTask._id === realTask._id ? realTask.description : realTask.name ?? realTask.description : realTask.description,
9615
9615
  url: realTask.url,
9616
9616
  notes: realTask.notes,
9617
9617
  state: idsTasksAlreadySent.includes(realTask._id) && realCurrentTask._id !== realTask._id || disabledTask ? 'disabled' : realCurrentTask && realCurrentTask._id === realTask._id ? 'active' : 'idle',
@@ -9626,7 +9626,7 @@ const Chat = ({
9626
9626
  const scenario = isInterviewer ? task : JSON.parse(task.body);
9627
9627
  return /*#__PURE__*/React__default.createElement(Scenario, {
9628
9628
  title: `Scenario #${scenario.index}`,
9629
- description: scenario.name ?? scenario.description,
9629
+ description: scenario.description,
9630
9630
  buttonText: scenario.url ? startInterviewBtnTitle : undefined,
9631
9631
  buttonIcon: scenario.url ? startInterviewIcon : undefined,
9632
9632
  url: scenario.url ?? '',