Bugs fixed

This commit is contained in:
Diego Mello 2017-12-08 16:31:05 -02:00
parent 392dff6db1
commit 779c915f0c
2 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@ export default (state = initialState, action) => {
case types.ACTIVE_USERS.SET:
return {
...state,
...action.user
...action.data
};
default:
return state;

View File

@ -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 = {};
}