client/extensions/woocommerce/state/sites/settings/mailchimp/reducer.js
function newsletterSettingsSubmitError( state = false, action ) {
	switch ( action.type ) {
		case WOOCOMMERCE_MAILCHIMP_NEWSLETTER_SETTINGS_SUBMIT_SUCCESS:
		case WOOCOMMERCE_MAILCHIMP_NEWSLETTER_SETTINGS_SUBMIT_FAILURE:
			const error =
				WOOCOMMERCE_MAILCHIMP_NEWSLETTER_SETTINGS_SUBMIT_FAILURE === action.type
					? action.error
					: false;
			return error;
	}

	return state;
}
function newsletterSettingsSubmitError( state = false, action ) {
	switch ( action.type ) {
		case WOOCOMMERCE_MAILCHIMP_NEWSLETTER_SETTINGS_SUBMIT_SUCCESS:
		case WOOCOMMERCE_MAILCHIMP_NEWSLETTER_SETTINGS_SUBMIT_FAILURE:
			const error =
				WOOCOMMERCE_MAILCHIMP_NEWSLETTER_SETTINGS_SUBMIT_FAILURE === action.type
					? action.error
					: false;
			return error;
	}

	return state;
}
function newsletterSettingsSubmitError ( state = false , action ) { switch ( action . type ) { case WOOCOMMERCE_MAILCHIMP_NEWSLETTER_SETTINGS_SUBMIT_SUCCESS : case WOOCOMMERCE_MAILCHIMP_NEWSLETTER_SETTINGS_SUBMIT_FAILURE : const error = WOOCOMMERCE_MAILCHIMP_NEWSLETTER_SETTINGS_SUBMIT_FAILURE === action . type ? action . error : false ; return error ; } return state ; }
Updates state with newsletter settings submit error
Holds information only for latest request

@param  {Object} state  Current state
@param  {Object} action Action
@return {Object}        Updated state
Updates state with newsletter settings submit error Holds information only for latest request