Browse Source

new fresh

Gennadysht 1 year ago
parent
commit
cfe10b41e2
1 changed files with 2 additions and 2 deletions
  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 gql = getGql("http://shop-roles.node.ed.asmer.org.ua/graphql");
         const actionPromise = (name, promise) => {
         const actionPromise = (name, promise) => {
-            return actionPromiseInt = async (dispatch) => {
+            return async (dispatch) => {
                 dispatch(actionPending(name)) //сигнализируем redux, что промис начался
                 dispatch(actionPending(name)) //сигнализируем redux, что промис начался
                 try {
                 try {
                     let payload = await promise //ожидаем промиса
                     let payload = await promise //ожидаем промиса
@@ -429,7 +429,7 @@
             return gql(orderUpsertQuery, { order: { "_id": id, "orderGoods": order } });
             return gql(orderUpsertQuery, { order: { "_id": id, "orderGoods": order } });
         }
         }
         const orderFullUpsert = (then) => {
         const orderFullUpsert = (then) => {
-            return gqlFullOrderUpsert = async (dispatch, getState) => {
+            return async (dispatch, getState) => {
                 let state = getState();
                 let state = getState();
                 let order = [];
                 let order = [];
                 for (cartItem of Object.values(state.cartReducer)) {
                 for (cartItem of Object.values(state.cartReducer)) {