@shopgate/pwa-common-commerce
Version:
Commerce library for the Shopgate Connect PWA.
6 lines • 495 B
JavaScript
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.
*/var errorProductDescription=function errorProductDescription(productId,errorCode){return{type:ERROR_PRODUCT_DESCRIPTION,productId:productId,errorCode:errorCode};};export default errorProductDescription;