willba-component-library 0.1.42 → 0.1.43

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/lib/index.umd.js CHANGED
@@ -4076,15 +4076,11 @@
4076
4076
  ageCategories === null || ageCategories === void 0 ? void 0 : ageCategories.map(function (a) {
4077
4077
  if (a.minVal) {
4078
4078
  // Age categories rules
4079
- var totalAgeCategories = Object.entries(ageCategoryCounts).reduce(function (acc, c) {
4079
+ Object.entries(ageCategoryCounts).reduce(function (acc, c) {
4080
4080
  return acc + c[1];
4081
4081
  }, 0);
4082
4082
  var ageCategory = ageCategoryCounts["guests-".concat(a.id)];
4083
- if (!totalAgeCategories ||
4084
- (totalAgeCategories === 1 && ageCategory === 1)) {
4085
- ageCategoryCounts["guests-".concat(a.id)] = 2;
4086
- }
4087
- else if (totalAgeCategories > 1 && !ageCategory) {
4083
+ if (!ageCategory) {
4088
4084
  ageCategoryCounts["guests-".concat(a.id)] = a.minVal;
4089
4085
  }
4090
4086
  }