odaptos_design_system 2.0.39 → 2.0.40

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.
@@ -11922,7 +11922,7 @@ const SelfProtocolManager = ({
11922
11922
  ctaText: texts.nextTaskCTA,
11923
11923
  buttonIcon: /*#__PURE__*/React.createElement(SendIcon, null),
11924
11924
  onClick: () => sendTask(task),
11925
- isDisabled: getIsTaskDisabled(task),
11925
+ isDisabled: getIsTaskDisabled(task) || isUserSharingScreen === false,
11926
11926
  isDisplay: task.isDisplay
11927
11927
  });
11928
11928
  } else if (task.type === 'scenario') {
@@ -11936,7 +11936,7 @@ const SelfProtocolManager = ({
11936
11936
  buttonId: 'start_scenario',
11937
11937
  onClick: () => sendTask(task),
11938
11938
  isDisplay: task.isDisplay,
11939
- isDisabled: getIsTaskDisabled(task) || !isUserSharingScreen
11939
+ isDisabled: getIsTaskDisabled(task) || isUserSharingScreen === false
11940
11940
  });
11941
11941
  } else return /*#__PURE__*/React.createElement(React.Fragment, null);
11942
11942
  }), areAllTasksSend && !isLastScenario && onClickFinishScenario && /*#__PURE__*/React.createElement(SelfProtocolTaskContainer, {