UNPKG

@shopgate/pwa-common-commerce

Version:

Commerce library for the Shopgate Connect PWA.

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