Gennadysht 1 rok temu
rodzic
commit
cfe10b41e2
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      js/Module/index.html

+ 2 - 2
js/Module/index.html

@@ -300,7 +300,7 @@
         }
         const gql = getGql("http://shop-roles.node.ed.asmer.org.ua/graphql");
         const actionPromise = (name, promise) => {
-            return actionPromiseInt = async (dispatch) => {
+            return async (dispatch) => {
                 dispatch(actionPending(name)) //сигнализируем redux, что промис начался
                 try {
                     let payload = await promise //ожидаем промиса
@@ -429,7 +429,7 @@
             return gql(orderUpsertQuery, { order: { "_id": id, "orderGoods": order } });
         }
         const orderFullUpsert = (then) => {
-            return gqlFullOrderUpsert = async (dispatch, getState) => {
+            return async (dispatch, getState) => {
                 let state = getState();
                 let order = [];
                 for (cartItem of Object.values(state.cartReducer)) {