@heycater/qualification-funnel 1.19.2 → 1.19.3

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.esm.js CHANGED
@@ -7553,8 +7553,13 @@ function handleServiceTypeChange(state, answer) {
7553
7553
  const newStepOrder = getStepOrderForServiceType(serviceType);
7554
7554
  const existingSteps = state.qualification.steps;
7555
7555
  const newSteps = newStepOrder.map((stepId) => {
7556
- const existingStep = existingSteps.find((s3) => s3.id === stepId);
7557
- return existingStep ? { ...existingStep } : { id: stepId };
7556
+ if (stepId === "city") {
7557
+ const existingCityStep = existingSteps.find((s3) => s3.id === "city");
7558
+ if (existingCityStep == null ? void 0 : existingCityStep.disabled) {
7559
+ return { id: stepId, disabled: true };
7560
+ }
7561
+ }
7562
+ return { id: stepId };
7558
7563
  });
7559
7564
  return {
7560
7565
  ...state,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@heycater/qualification-funnel",
3
- "version": "1.19.2",
3
+ "version": "1.19.3",
4
4
  "type": "module",
5
5
  "description": "Heycater embedded qualification funnel widget",
6
6
  "main": "dist/index.cjs.js",