Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export default store => next => action => {
let newAction = action;
if (isValidRSAA(action)) {
newAction = pendingRefuse(action, store);
if (!isValidRSAA(newAction)) return next(newAction);
newAction = compose(
pendingRefuse, stringifyJsonBody, serializeFormBody, decamelizeBody
)(newAction);
}
return next(newAction);
};
export default store => next => action => {
let newAction = action;
if (isValidRSAA(action)) {
newAction = pendingRefuse(action, store);
if (!isValidRSAA(newAction)) return next(newAction);
newAction = compose(
pendingRefuse, stringifyJsonBody, serializeFormBody, decamelizeBody
)(newAction);
}
return next(newAction);
};