UNPKG

@shopgate/pwa-common-commerce

Version:

Commerce library for the Shopgate Connect PWA.

7 lines 673 B
import{ERROR_DELETE_PRODUCTS_FROM_CART}from"../constants";/** * Creates the dispatched ERROR_DELETE_PRODUCTS_FROM_CART action object. * @param {Array} products The products that where supposed to be deleted within * an DELETE_PRODUCTS_FROM_CART action. * @param {PipelineErrorElement[]} [errors] A list of errors messages for the products. * @returns {Object} The dispatched action object. */var errorDeleteProductsFromCart=function errorDeleteProductsFromCart(products){var errors=arguments.length>1&&arguments[1]!==undefined?arguments[1]:[];return{type:ERROR_DELETE_PRODUCTS_FROM_CART,products:products,errors:errors};};export default errorDeleteProductsFromCart;