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/package.json
CHANGED
|
@@ -178,14 +178,10 @@ const handleAgeCategoryRules = ({
|
|
|
178
178
|
},
|
|
179
179
|
0
|
|
180
180
|
)
|
|
181
|
+
|
|
181
182
|
const ageCategory = ageCategoryCounts[`guests-${a.id}`]
|
|
182
183
|
|
|
183
|
-
if (
|
|
184
|
-
!totalAgeCategories ||
|
|
185
|
-
(totalAgeCategories === 1 && ageCategory === 1)
|
|
186
|
-
) {
|
|
187
|
-
ageCategoryCounts[`guests-${a.id}`] = 2
|
|
188
|
-
} else if (totalAgeCategories > 1 && !ageCategory) {
|
|
184
|
+
if (!ageCategory) {
|
|
189
185
|
ageCategoryCounts[`guests-${a.id}`] = a.minVal
|
|
190
186
|
}
|
|
191
187
|
}
|