orderiom-api-package 0.2.36 → 0.2.37
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
package/src/modules/product.js
CHANGED
|
@@ -456,7 +456,7 @@ const actions = {
|
|
|
456
456
|
restaurantId: !basketId ? restaurantId : undefined
|
|
457
457
|
}).then(async res => {
|
|
458
458
|
if(res.data.message.type !== 'success'){
|
|
459
|
-
return { type: 'error', msg: '
|
|
459
|
+
return { type: 'error', msg: 'There was an error in updating the delivery type' }
|
|
460
460
|
}
|
|
461
461
|
|
|
462
462
|
const result = await dispatch("getBasket", restaurantId);
|
|
@@ -464,7 +464,7 @@ const actions = {
|
|
|
464
464
|
return {
|
|
465
465
|
type: result ? 'success' : 'error',
|
|
466
466
|
msg: !result ?
|
|
467
|
-
'
|
|
467
|
+
'There was an error in fetching the basket info'
|
|
468
468
|
:
|
|
469
469
|
rootState.orderiomApiPackage.product.ShoppingCart.length < shoppingCartItems ?
|
|
470
470
|
'Some items are removed from the cart'
|
|
@@ -473,7 +473,7 @@ const actions = {
|
|
|
473
473
|
}
|
|
474
474
|
}).catch(err => {
|
|
475
475
|
console.error(err);
|
|
476
|
-
return { type: 'error', msg: '
|
|
476
|
+
return { type: 'error', msg: 'There was an error in updating the delivery type' }
|
|
477
477
|
}).finally(() => {
|
|
478
478
|
commit('finishChangingDeliveryType');
|
|
479
479
|
});
|