File size: 392 Bytes
f5071ca |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
import { RECEIVE_USER , REMOVE_ERRORS}
from '../actions/session_actions';
import {merge} from 'lodash';
const generalErrorsReducer = (state = [], action) => {
Object.freeze(state);
switch (action.type) {
case REMOVE_ERRORS:
return action.errors;
case RECEIVE_USER:
return [];
default:
return state;
}
};
export default generalErrorsReducer;
|