UNPKG

@shopgate/pwa-common-commerce

Version:

Commerce library for the Shopgate Connect PWA.

6 lines 637 B
import{ERROR_UPDATE_PRODUCTS_IN_CART}from"../constants";/** * Creates the dispatched ERROR_UPDATE_PRODUCTS_IN_CART action object. * @param {Array} updateData The update data from the failed UPDATE_PRODUCTS_IN_CART action. * @param {PipelineErrorElement[]} [errors] A list of errors messages for the products. * @returns {Object} The dispatched action object. */var errorUpdateProductsInCart=function errorUpdateProductsInCart(updateData){var errors=arguments.length>1&&arguments[1]!==undefined?arguments[1]:[];return{type:ERROR_UPDATE_PRODUCTS_IN_CART,updateData:updateData,errors:errors};};export default errorUpdateProductsInCart;