const unique = state.userData.find((item)=>{
return action.userData.job_id && item.job_id ?
action.userData.job_id === item.job_id && action.userData._id === item._id :
action.userData.session_id === item.session_id && action.userData._id === item._id;
});
const userData = !unique ? [...state.userData, action.userData] : state.userData;