Skip to content

Commit 46d9498

Browse files
authored
Merge pull request #10 from fluturecode/eae-17-feature-add-user-to-order-form
#17-Feature(ordered_by):retrieve user for order from
2 parents c2c9ab6 + cd814ac commit 46d9498

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

application/src/redux/reducers/authReducer.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ export default (state = INITIAL_STATE, action) => {
77
case LOGIN:
88
return {
99
...state,
10-
email: action.payload.login,
10+
email: action.payload.email,
1111
token: action.payload.token,
1212
};
1313
case LOGOUT:
14-
return {};
14+
return { ...state, ...INITIAL_STATE };
1515
default:
1616
return state;
1717
}

0 commit comments

Comments
 (0)