orderiom-api-package 0.4.10 → 0.4.11

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.10",
3
+ "version": "0.4.11",
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",
@@ -390,7 +390,9 @@ const actions = {
390
390
  }
391
391
 
392
392
  const selectedCategory = rootState.orderiomApiPackage.product.selectedCategory
393
- if (selectedCategory) {
393
+ if (rootState.orderiomApiPackage.product.showPinnedProducts) {
394
+ dispatch("getPinnedProducts", restaurantId);
395
+ } else if (selectedCategory) {
394
396
  dispatch("getProducts", {
395
397
  category: selectedCategory,
396
398
  restaurantId: restaurantId,
@@ -403,10 +405,6 @@ const actions = {
403
405
  dispatch('getCategories', (restaurantId || restaurantIdEnv));
404
406
  }
405
407
 
406
- if (rootState.orderiomApiPackage.product.showPinnedProducts) {
407
- dispatch("getPinnedProducts", restaurantId);
408
- }
409
-
410
408
  const result = await dispatch("getBasket", (restaurantId || restaurantIdEnv));
411
409
 
412
410
  return {