Skip to content

Commit

Permalink
fix: Repair logon problem
Browse files Browse the repository at this point in the history
  • Loading branch information
yinxin630 committed Jun 5, 2018
1 parent 56036a5 commit e8910ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/state/reducer.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ function reducer(state = initialState, action) {

case 'SetUser': {
let newState = state;
if (state.get('user') === null) {
if (state.getIn(['user', '_id']) === undefined) {
newState = newState
.set('user', immutable.fromJS(action.user))
.set('focus', state.get('focus') || action.user.linkmans[0]._id);
Expand Down

0 comments on commit e8910ae

Please sign in to comment.