Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import * as consts from 'redux/constants';
- export default store => next => action => {
- const {error} = action;
- if (error && error.response && error.response.data.result === 5) {
- next({ type: consts.DISPLAY_ERROR, error: error.response.data});
- } else {
- next(action);
- }
- };
Add Comment
Please, Sign In to add comment