fix reducer logic mistake
This commit is contained in:
parent
866be8e62c
commit
e6cc99aa5c
|
@ -63,7 +63,7 @@ export default function createReducer(
|
||||||
user:
|
user:
|
||||||
state.user && state.user.ethAddress === action.payload.user.ethAddress
|
state.user && state.user.ethAddress === action.payload.user.ethAddress
|
||||||
? action.payload.user
|
? action.payload.user
|
||||||
: action.payload.user,
|
: state.user,
|
||||||
};
|
};
|
||||||
case types.AUTH_USER_REJECTED:
|
case types.AUTH_USER_REJECTED:
|
||||||
return {
|
return {
|
||||||
|
|
Loading…
Reference in New Issue