@shopgate/pwa-common-commerce
Version:
Commerce library for the Shopgate Connect PWA.
5 lines • 433 B
JavaScript
import{SET_COUPON_FIELD_ERROR}from"../constants";/**
* Creates the dispatched SET_COUPON_FIELD_ERROR action object.
* @param {string} message The error message
* @returns {Object} The dispatched action object.
*/var setCouponFieldError=function setCouponFieldError(){var message=arguments.length>0&&arguments[0]!==undefined?arguments[0]:'';return{type:SET_COUPON_FIELD_ERROR,message:message};};export default setCouponFieldError;