Skip to content

Commit

Permalink
js-lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Oksydan committed Sep 26, 2023
1 parent 2e0c8e3 commit e0874d8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion _dev/js/theme/core/cart/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import DOMReady from '../../utils/DOMReady';
import prestashop from 'prestashop';
import DOMReady from '../../utils/DOMReady';
import cartController from './cartController';

prestashop.cart = prestashop.cart || {};
Expand Down
22 changes: 11 additions & 11 deletions _dev/js/theme/core/cart/request/cart/updateCartContentRequest.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import useDefaultHttpRequest from "../../../../components/http/useDefaultHttpRequest";
import prestashop from "prestashop";
import prestashop from 'prestashop';
import useDefaultHttpRequest from '../../../../components/http/useDefaultHttpRequest';
/**
* @typedef ServerResponse
* @type {object}
Expand Down Expand Up @@ -27,16 +27,16 @@ import prestashop from "prestashop";
* @returns {{getRequest: (function(): Promise<ServerResponse>)}}
*/
const updateCartContentRequest = () => {
const payloadToSend = {
action: 'refresh',
ajax: 1,
};
const payloadToSend = {
action: 'refresh',
ajax: 1,
};

const getRequest = () => useDefaultHttpRequest(prestashop.urls.pages.cart, payloadToSend);
const getRequest = () => useDefaultHttpRequest(prestashop.urls.pages.cart, payloadToSend);

return {
getRequest,
}
}
return {
getRequest,
};
};

export default updateCartContentRequest;

0 comments on commit e0874d8

Please sign in to comment.