@shopgate/pwa-common-commerce
Version:
Commerce library for the Shopgate Connect PWA.
12 lines (11 loc) • 354 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.
*/
const setCouponFieldError = (message = '') => ({
type: SET_COUPON_FIELD_ERROR,
message
});
export default setCouponFieldError;