orderiom-api-package 0.4.34 → 0.4.35

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.34",
3
+ "version": "0.4.35",
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",
@@ -103,10 +103,10 @@ const getters = {
103
103
  return result;
104
104
  },
105
105
  hasDelay(state, getters, rootState){
106
+ if(rootState.orderiomApiPackage.restaurant.restaurantInfo.closed) return true;
106
107
  const dt = deliveryCodeToName(state.basketInfo.deliveryType);
107
108
  if(!dt) return false;
108
- const closedToday = rootState.orderiomApiPackage.restaurant.restaurantInfo.closed || false;
109
- return Boolean(closedToday || rootState.orderiomApiPackage.restaurant.restaurantInfo[`${dt}_hours`]);
109
+ return Boolean(rootState.orderiomApiPackage.restaurant.restaurantInfo[`${dt}_hours`]);
110
110
  },
111
111
  minDateTimeForDelivery (state, getters, rootState){
112
112
  const dt = deliveryCodeToName(state.basketInfo.deliveryType)