orderiom-api-package 0.4.81 → 0.4.82
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 +1 -1
- package/src/modules/product.js +1 -1
package/package.json
CHANGED
package/src/modules/product.js
CHANGED
|
@@ -459,7 +459,7 @@ const actions = {
|
|
|
459
459
|
}
|
|
460
460
|
|
|
461
461
|
data.forEach(({happyHour: happyHours, id: productId}) => {
|
|
462
|
-
if(!happyHours
|
|
462
|
+
if(!happyHours || !happyHours.length) return;
|
|
463
463
|
const product = productList.find(product => product.id === productId);
|
|
464
464
|
if(!product) {
|
|
465
465
|
console.error(`getProductsHappyHourTime: Could not assign happyHours to product:${productId}`);
|