orderiom-api-package 0.4.63 → 0.4.65

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.63",
3
+ "version": "0.4.65",
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",
@@ -664,6 +664,7 @@ const actions = {
664
664
  },
665
665
  })
666
666
  .then((res) => {
667
+ if(!res.data.data.order.is_online_payment) delete res.data.data.order.payment_id;
667
668
  commit("setproductOrder", res.data.data.products);
668
669
  commit("settotalPriceOrder", res.data.data.order.total_price);
669
670
  commit("setorder", res.data.data.order);
@@ -36,9 +36,6 @@ const getters = {
36
36
  fetchingProducts(state){
37
37
  return !!state.fetchingProducts;
38
38
  },
39
- categoriesFetchedOnce(){
40
- return !!state.categoriesFetchedOnce;
41
- },
42
39
  subCategories(state){
43
40
  if(!state.products) return []
44
41
  if(state.showPinnedProducts) {
@@ -163,7 +160,7 @@ const getters = {
163
160
  }
164
161
  const mutations = {
165
162
  setCategoriesFetchedOnce(state){
166
- state.setCategoriesFetchedOnce = true;
163
+ state.categoriesFetchedOnce = true;
167
164
  },
168
165
  setFetchingProducts(state, isFetching){
169
166
  state.fetchingProducts = isFetching;