Skip to content

Commit

Permalink
Merge pull request #10 from fluturecode/eae-17-feature-add-user-to-or…
Browse files Browse the repository at this point in the history
…der-form

#17-Feature(ordered_by):retrieve user for order from
  • Loading branch information
fluturecode authored Aug 28, 2020
2 parents c2c9ab6 + cd814ac commit 46d9498
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions application/src/redux/reducers/authReducer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 46d9498

Please sign in to comment.