Skip to content

Commit 57affc8

Browse files
ManishManish
Manish
authored and
Manish
committed
fix(authReducer): typo fixed in order to return email for the LOGIN case.
1 parent 8d83392 commit 57affc8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

application/src/redux/reducers/authReducer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const INITIAL_STATE = { email: null, token: null };
55
export default (state = INITIAL_STATE, action) => {
66
switch (action.type) {
77
case LOGIN:
8-
return { ...state, email: action.payload.login, token: action.payload.token }
8+
return { ...state, email: action.payload.email, token: action.payload.token }
99
case LOGOUT:
1010
return { ...state, ...INITIAL_STATE }
1111
default:

0 commit comments

Comments
 (0)