Guest User

Untitled

a guest
Apr 23rd, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. import * as consts from 'redux/constants';
  2.  
  3. export default store => next => action => {
  4. const {error} = action;
  5. if (error && error.response && error.response.data.result === 5) {
  6. next({ type: consts.DISPLAY_ERROR, error: error.response.data});
  7. } else {
  8. next(action);
  9. }
  10. };
Add Comment
Please, Sign In to add comment