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: case types.ACTIVE_USERS.SET:
return { return {
...state, ...state,
...action.user ...action.data
}; };
default: default:
return state; return state;

View File

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