@algorithm-shift/design-system 1.3.125 → 1.3.126

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.
package/dist/index.js CHANGED
@@ -5845,7 +5845,6 @@ var StagesComponent = ({
5845
5845
  return;
5846
5846
  }
5847
5847
  };
5848
- const lastStage = stages && stages.length > 0 ? stages[stages.length - 1][dataKey] : null;
5849
5848
  const isMobile = canvasMode === "mobile";
5850
5849
  const onStageClick = (stageKey) => {
5851
5850
  if (!stageKey || stageKey === activeStage) return;
@@ -5889,7 +5888,7 @@ var StagesComponent = ({
5889
5888
  setActiveRootStage(activeRoot);
5890
5889
  setActiveChildStage(activeChild);
5891
5890
  }, [currentStage, stages]);
5892
- const isAllStagesCompleted = isCompleted || activeRootStage?.[dataKey] === lastStage;
5891
+ const isAllStagesCompleted = isCompleted;
5893
5892
  const disabled = isAllStagesCompleted || loading || saving;
5894
5893
  const primaryColor = props.primaryColor || "#12715b";
5895
5894
  return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { className, style, children: /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(