diff --git a/application/src/redux/reducers/authReducer.js b/application/src/redux/reducers/authReducer.js index 0b01abdf..15466b51 100644 --- a/application/src/redux/reducers/authReducer.js +++ b/application/src/redux/reducers/authReducer.js @@ -7,11 +7,11 @@ export default (state = INITIAL_STATE, action) => { case LOGIN: return { ...state, - email: action.payload.login, + email: action.payload.email, token: action.payload.token, }; case LOGOUT: - return {}; + return { ...state, ...INITIAL_STATE }; default: return state; }