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.esm.js
CHANGED
|
@@ -4054,15 +4054,11 @@ var handleAgeCategoryRules = function (_a) {
|
|
|
4054
4054
|
ageCategories === null || ageCategories === void 0 ? void 0 : ageCategories.map(function (a) {
|
|
4055
4055
|
if (a.minVal) {
|
|
4056
4056
|
// Age categories rules
|
|
4057
|
-
|
|
4057
|
+
Object.entries(ageCategoryCounts).reduce(function (acc, c) {
|
|
4058
4058
|
return acc + c[1];
|
|
4059
4059
|
}, 0);
|
|
4060
4060
|
var ageCategory = ageCategoryCounts["guests-".concat(a.id)];
|
|
4061
|
-
if (!
|
|
4062
|
-
(totalAgeCategories === 1 && ageCategory === 1)) {
|
|
4063
|
-
ageCategoryCounts["guests-".concat(a.id)] = 2;
|
|
4064
|
-
}
|
|
4065
|
-
else if (totalAgeCategories > 1 && !ageCategory) {
|
|
4061
|
+
if (!ageCategory) {
|
|
4066
4062
|
ageCategoryCounts["guests-".concat(a.id)] = a.minVal;
|
|
4067
4063
|
}
|
|
4068
4064
|
}
|