diff --git a/frontend/src/actions/orderActions.js b/frontend/src/actions/orderActions.js index 379243eff..2a928fcfd 100644 --- a/frontend/src/actions/orderActions.js +++ b/frontend/src/actions/orderActions.js @@ -60,8 +60,7 @@ export const createOrder = (order) => async (dispatch, getState) => { }) dispatch({ - type: CART_CLEAR_ITEMS, - payload: data + type: CART_CLEAR_ITEMS }) localStorage.removeItem('cartItems') @@ -274,4 +273,4 @@ export const listOrders = () => async (dispatch, getState) => { : error.message, }) } -} \ No newline at end of file +}