UNPKG

@shopgate/pwa-common-commerce

Version:

Commerce library for the Shopgate Connect PWA.

14 lines (13 loc) 458 B
import { ERROR_PRODUCT_PROPERTIES } from "../constants"; /** * Dispatches the ERROR_PRODUCT_PROPERTIES action object. * @param {string} productId The ID of the product that received properties. * @param {string} errorCode errorCode * @return {Object} The ERROR_PRODUCT_PROPERTIES action. */ const errorProductProperties = (productId, errorCode) => ({ type: ERROR_PRODUCT_PROPERTIES, productId, errorCode }); export default errorProductProperties;