@open-tender/utils 0.4.76 → 0.4.77
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.
|
@@ -8,7 +8,7 @@ export declare const useOrderItem: (orderItem: CartItem, favorite?: MenuItemFavo
|
|
|
8
8
|
isIncomplete: boolean;
|
|
9
9
|
isSoldOut: boolean;
|
|
10
10
|
allergenAlert: string | null;
|
|
11
|
-
|
|
11
|
+
tagAlert: string | null;
|
|
12
12
|
hasSelections: boolean;
|
|
13
13
|
sizeOnly: boolean | undefined;
|
|
14
14
|
cartCount: number;
|
|
@@ -10,7 +10,7 @@ const useOrderItem = (orderItem, favorite = null, allergenAlerts = [], cartCount
|
|
|
10
10
|
const contains = allergens.filter(allergen => allergenAlerts.includes(allergen));
|
|
11
11
|
const allergenAlert = contains.length ? `${contains.join(', ')}` : null;
|
|
12
12
|
const containsTags = tags.filter(tag => tagsAllert.includes(tag));
|
|
13
|
-
const
|
|
13
|
+
const tagAlert = containsTags.length ? `${containsTags.join(', ')}` : null;
|
|
14
14
|
const sizeGroup = groups.find(i => i.isSize);
|
|
15
15
|
const sizeOnly = sizeGroup && groups.length === 1;
|
|
16
16
|
const defaultOption = !sizeGroup
|
|
@@ -49,7 +49,7 @@ const useOrderItem = (orderItem, favorite = null, allergenAlerts = [], cartCount
|
|
|
49
49
|
isIncomplete,
|
|
50
50
|
isSoldOut,
|
|
51
51
|
allergenAlert,
|
|
52
|
-
|
|
52
|
+
tagAlert,
|
|
53
53
|
hasSelections,
|
|
54
54
|
sizeOnly,
|
|
55
55
|
cartCount });
|
|
@@ -8,7 +8,7 @@ export declare const useOrderItem: (orderItem: CartItem, favorite?: MenuItemFavo
|
|
|
8
8
|
isIncomplete: boolean;
|
|
9
9
|
isSoldOut: boolean;
|
|
10
10
|
allergenAlert: string | null;
|
|
11
|
-
|
|
11
|
+
tagAlert: string | null;
|
|
12
12
|
hasSelections: boolean;
|
|
13
13
|
sizeOnly: boolean | undefined;
|
|
14
14
|
cartCount: number;
|
|
@@ -7,7 +7,7 @@ export const useOrderItem = (orderItem, favorite = null, allergenAlerts = [], ca
|
|
|
7
7
|
const contains = allergens.filter(allergen => allergenAlerts.includes(allergen));
|
|
8
8
|
const allergenAlert = contains.length ? `${contains.join(', ')}` : null;
|
|
9
9
|
const containsTags = tags.filter(tag => tagsAllert.includes(tag));
|
|
10
|
-
const
|
|
10
|
+
const tagAlert = containsTags.length ? `${containsTags.join(', ')}` : null;
|
|
11
11
|
const sizeGroup = groups.find(i => i.isSize);
|
|
12
12
|
const sizeOnly = sizeGroup && groups.length === 1;
|
|
13
13
|
const defaultOption = !sizeGroup
|
|
@@ -46,7 +46,7 @@ export const useOrderItem = (orderItem, favorite = null, allergenAlerts = [], ca
|
|
|
46
46
|
isIncomplete,
|
|
47
47
|
isSoldOut,
|
|
48
48
|
allergenAlert,
|
|
49
|
-
|
|
49
|
+
tagAlert,
|
|
50
50
|
hasSelections,
|
|
51
51
|
sizeOnly,
|
|
52
52
|
cartCount });
|
package/package.json
CHANGED