All files / src/store/middleware toast.js

83.33% Statements 5/6
50% Branches 1/2
100% Functions 3/3
100% Lines 3/3

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 710x 36x 36x        
const toast = store => next => action => {
  Iif (action.type === "error") console.log("Toastify", action.payload.message);
  else return next(action);
};
 
export default toast;