tripstorekrabi-shared 1.23.4 → 1.23.6
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/booking.js +3 -2
- package/package.json +1 -1
package/booking.js
CHANGED
|
@@ -365,13 +365,14 @@ export function getStartingPointMessage(booking, product, options = { compact: f
|
|
|
365
365
|
export function requiresDietaryInfo(booking, product) {
|
|
366
366
|
if (!product) return true;
|
|
367
367
|
|
|
368
|
-
const mainIsFood = hasFood(product);
|
|
368
|
+
const mainIsFood = hasFood(product.includes);
|
|
369
369
|
|
|
370
370
|
const productFoodAddOns = (product.addOns || []).filter(pAddOn => hasFood(pAddOn));
|
|
371
371
|
|
|
372
372
|
if (productFoodAddOns.length > 0) {
|
|
373
373
|
const hasActiveFoodAddOn = productFoodAddOns.some(pAddOn => {
|
|
374
|
-
const bookedAddOn =
|
|
374
|
+
const bookedAddOn = booking?.addOns?.[pAddOn.id];
|
|
375
|
+
|
|
375
376
|
if (!bookedAddOn) return false;
|
|
376
377
|
|
|
377
378
|
const totalPax = (bookedAddOn.adults || 0) + (bookedAddOn.children || 0);
|