@shopgate/pwa-common-commerce
Version:
Commerce library for the Shopgate Connect PWA.
12 lines (11 loc) • 332 B
JavaScript
import { ERROR_SUBMIT_REVIEW } from "../constants";
/**
* Dispatches the ERROR_SUBMIT_REVIEW action.
* @param {string} productId The ID of the product.
* @returns {Object} The ERROR_SUBMIT_REVIEW action.
*/
const errorSubmitReview = productId => ({
type: ERROR_SUBMIT_REVIEW,
productId
});
export default errorSubmitReview;