Authored by 于良

Merge branch 'local' into develop

... ... @@ -73,12 +73,13 @@ export default function userReducer(state = initialState, action) {
}
case HOME_BRABDRANK_SUCCESS: {
let rise = Math.abs(action.payload.rankChange) == action.payload.rankChange ? true : false;
let rankChange = action.payload.rankChange || 0;
let rise = Math.abs(rankChange) == rankChange ? true : false;
let nextState = state.set('isFetching', false)
.set('error', null)
.setIn(['overview', 'rank'], action.payload.rankNow || 0)
.setIn(['overview', 'rise'], rise)
.setIn(['overview', 'riseCount'], Math.abs(action.payload.rankChange))
.setIn(['overview', 'riseCount'], Math.abs(rankChange))
return nextState;
}
... ...