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 +1 -1
- package/src/modules/product.js +2 -2
package/package.json
CHANGED
package/src/modules/product.js
CHANGED
|
@@ -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
|
-
|
|
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)
|