@usertour/helpers 0.0.46 → 0.0.48

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.
@@ -521,9 +521,9 @@ var evaluateRule = async (condition, options) => {
521
521
  var _a, _b;
522
522
  const { typeControl = {}, activatedIds, deactivatedIds, customEvaluators } = options;
523
523
  const conditionId = condition.id;
524
- if (activatedIds == null ? void 0 : activatedIds.includes(conditionId))
524
+ if (conditionId && (activatedIds == null ? void 0 : activatedIds.includes(conditionId)))
525
525
  return true;
526
- if (deactivatedIds == null ? void 0 : deactivatedIds.includes(conditionId))
526
+ if (conditionId && (deactivatedIds == null ? void 0 : deactivatedIds.includes(conditionId)))
527
527
  return false;
528
528
  const customEvaluator = customEvaluators == null ? void 0 : customEvaluators[condition.type];
529
529
  if (customEvaluator) {
@@ -2,7 +2,7 @@ import {
2
2
  evaluateRulesConditions,
3
3
  filterConditionsByType,
4
4
  isConditionsActived
5
- } from "../chunk-SLM6E7HG.js";
5
+ } from "../chunk-SIG4WTEF.js";
6
6
  import "../chunk-YYIGUZNZ.js";
7
7
  import "../chunk-PAESAL23.js";
8
8
  import "../chunk-3KG2HTZ3.js";