odaptos_design_system 2.0.8 → 2.0.10

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.
@@ -11630,7 +11630,7 @@ const Chat = ({
11630
11630
  text: 'In order to participate to this test you need to share your screen before the first task is sent',
11631
11631
  size: "sm"
11632
11632
  }), /*#__PURE__*/React__default.createElement(Button, {
11633
- id: "start_scenario",
11633
+ id: "start_screen_share",
11634
11634
  text: 'Share my screen',
11635
11635
  onClick: () => startNMScreenSharing(),
11636
11636
  iconRight: /*#__PURE__*/React__default.createElement(TvIcon, null),
@@ -11668,20 +11668,21 @@ const Chat = ({
11668
11668
  });
11669
11669
  }
11670
11670
  if (task.type === 'scenario' && isInterviewNonModerated) {
11671
+ const realTask = isInterviewer ? task : JSON.parse(task.body);
11671
11672
  return /*#__PURE__*/React__default.createElement("div", {
11672
11673
  className: styles$g.nm_message_container
11673
11674
  }, /*#__PURE__*/React__default.createElement(Text, {
11674
- text: task.name,
11675
+ text: realTask.name,
11675
11676
  weight: "bold",
11676
11677
  size: "base"
11677
11678
  }), /*#__PURE__*/React__default.createElement(Text, {
11678
- text: task.description,
11679
+ text: realTask.description,
11679
11680
  size: "sm"
11680
11681
  }), /*#__PURE__*/React__default.createElement(Button, {
11681
11682
  id: "start_scenario",
11682
11683
  text: 'Start Now',
11683
- onClick: () => sendTask(task),
11684
- iconRight: /*#__PURE__*/React__default.createElement(TvIcon, null),
11684
+ onClick: () => sendTask(realTask),
11685
+ iconRight: /*#__PURE__*/React__default.createElement(SendIcon, null),
11685
11686
  className: styles$g.nm_button
11686
11687
  }));
11687
11688
  } else return /*#__PURE__*/React__default.createElement(React__default.Fragment, null);