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:
|
case types.ACTIVE_USERS.SET:
|
||||||
return {
|
return {
|
||||||
...state,
|
...state,
|
||||||
...action.user
|
...action.data
|
||||||
};
|
};
|
||||||
default:
|
default:
|
||||||
return state;
|
return state;
|
||||||
|
|
|
@ -11,7 +11,7 @@ const watchActiveUsers = function* handleInput() {
|
||||||
status: take(types.ACTIVE_USERS.REQUEST),
|
status: take(types.ACTIVE_USERS.REQUEST),
|
||||||
timeout: delay(3000)
|
timeout: delay(3000)
|
||||||
});
|
});
|
||||||
if (timeout) {
|
if (timeout && Object.keys(obj).length > 0) {
|
||||||
yield put(setActiveUser(obj));
|
yield put(setActiveUser(obj));
|
||||||
obj = {};
|
obj = {};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue