kulley hace 7 años
padre
commit
cba8480c83
Se han modificado 1 ficheros con 4 adiciones y 1 borrados
  1. 4 1
      src/pages/cart/pay/index.js

+ 4 - 1
src/pages/cart/pay/index.js

@@ -151,7 +151,10 @@ class Pay extends Component {
                 <div className="confirm-footer">
                 <div className="confirm-footer">
                     <Mutation mutation={gql(update_order)}
                     <Mutation mutation={gql(update_order)}
                               onError={error => console.log('error', error)}
                               onError={error => console.log('error', error)}
-                              refetchQueries={[{query: gql(orderbyprops), variables: {user_id, orderStatus:'1'}}]}
+                              refetchQueries={[
+                                  {query: gql(orderbyprops), variables: {user_id, orderStatus: '1'}},
+                                  {query: gql(orderbyprops), variables: {user_id, orderStatus: '0'}},
+                              ]}
                     >
                     >
                         {(update_order, {loading, error}) => (
                         {(update_order, {loading, error}) => (
                             <button
                             <button