Skip to content

Commit

Permalink
checkout payload typing information
Browse files Browse the repository at this point in the history
  • Loading branch information
Oksydan committed Sep 19, 2023
1 parent b13a826 commit b33ece3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import useHttpRequest from '../../../components/http/useHttpRequest';
* @returns {{getRequest: (function(): Promise<ServerResponse>)}}
*/
const checkCartStillOrderableRequest = () => {
// payload not typed because it isn't needed
const payload = {
ajax: 1,
action: 'checkCartStillOrderable',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ import useHttpRequest from '../../../components/http/useHttpRequest';
const selectDeliveryMethodRequest = (url, payload) => {
const { request } = useHttpRequest(url);

// payload not typed because delivery option parameter is dynamic
const payloadToSend = {
ajax: 1,
action: 'selectDeliveryOption',
Expand Down

0 comments on commit b33ece3

Please sign in to comment.