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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "orderiom-api-package",
3
- "version": "0.2.36",
3
+ "version": "0.2.37",
4
4
  "description": "this package will install all neccessary api calls for every orderiom restaurant",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -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: 'Could not update delivery type' }
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
- 'Could not get basket info'
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: 'Could not update delivery type' }
476
+ return { type: 'error', msg: 'There was an error in updating the delivery type' }
477
477
  }).finally(() => {
478
478
  commit('finishChangingDeliveryType');
479
479
  });
@@ -294,7 +294,7 @@ const actions = {
294
294
  if(!error.response){
295
295
  return {
296
296
  type: 'error',
297
- msg: 'Could not fetch blogs',
297
+ msg: 'There was an error in fetching the blogs',
298
298
  tagName: ''
299
299
  }
300
300
  }