tods-competition-factory 1.8.8 → 1.8.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.
@@ -3454,7 +3454,7 @@ function getPolicyDefinitions({
3454
3454
  if (policy)
3455
3455
  policyDefinitions[policyType] = policy;
3456
3456
  }
3457
- return Object.keys(policyDefinitions).length ? { policyDefinitions } : { error: POLICY_NOT_FOUND };
3457
+ return Object.keys(policyDefinitions).length ? { policyDefinitions } : { info: POLICY_NOT_FOUND.message };
3458
3458
  }
3459
3459
 
3460
3460
  const WALKOVER = "WALKOVER";
@@ -3569,7 +3569,7 @@ function findPolicy({
3569
3569
  structure,
3570
3570
  event
3571
3571
  });
3572
- return appliedPolicies?.[policyType] ? { policy: appliedPolicies[policyType] } : { error: POLICY_NOT_FOUND };
3572
+ return appliedPolicies?.[policyType] ? { policy: appliedPolicies[policyType] } : { info: POLICY_NOT_FOUND?.message };
3573
3573
  }
3574
3574
 
3575
3575
  function getMatchUpCompetitiveProfile({