orderiom-api-package 0.4.18 → 0.4.20
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/common.js +1 -1
- package/src/modules/product.js +1 -1
package/package.json
CHANGED
package/src/common.js
CHANGED
|
@@ -39,7 +39,7 @@ export function calculateBasketIdParameter(isLogin, restaurantId) {
|
|
|
39
39
|
console.error(e);
|
|
40
40
|
throw new Error('Basket not found');
|
|
41
41
|
}
|
|
42
|
-
const foundBasket = baskets.
|
|
42
|
+
const foundBasket = baskets.reverse().find(basket => Number(basket.restaurantId) === (Number(restaurantId) || restaurantIdEnv));
|
|
43
43
|
if(!foundBasket){
|
|
44
44
|
throw new Error('Basket not found');
|
|
45
45
|
}
|
package/src/modules/product.js
CHANGED
|
@@ -125,7 +125,7 @@ const getters = {
|
|
|
125
125
|
if(!dt) return null;
|
|
126
126
|
|
|
127
127
|
const ad = rootState.orderiomApiPackage.restaurant.restaurantInfo[`${dt}_available_days`];
|
|
128
|
-
if(!ad) return null;
|
|
128
|
+
if(!ad && ad !== 0) return null;
|
|
129
129
|
|
|
130
130
|
const result = new Date();
|
|
131
131
|
result.setHours(23, 59, 0, 0)
|