Bugs fixed
This commit is contained in:
parent
392dff6db1
commit
779c915f0c
|
@ -7,7 +7,7 @@ export default (state = initialState, action) => {
|
|||
case types.ACTIVE_USERS.SET:
|
||||
return {
|
||||
...state,
|
||||
...action.user
|
||||
...action.data
|
||||
};
|
||||
default:
|
||||
return state;
|
||||
|
|
|
@ -11,7 +11,7 @@ const watchActiveUsers = function* handleInput() {
|
|||
status: take(types.ACTIVE_USERS.REQUEST),
|
||||
timeout: delay(3000)
|
||||
});
|
||||
if (timeout) {
|
||||
if (timeout && Object.keys(obj).length > 0) {
|
||||
yield put(setActiveUser(obj));
|
||||
obj = {};
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue