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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "orderiom-api-package",
3
- "version": "0.4.81",
3
+ "version": "0.4.82",
4
4
  "description": "This package will install all necessary API calls for every orderiom restaurant",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -459,7 +459,7 @@ const actions = {
459
459
  }
460
460
 
461
461
  data.forEach(({happyHour: happyHours, id: productId}) => {
462
- if(!happyHours?.length) return;
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}`);