const userIdSelector = state => state.auth && state.auth.id;

export default userIdSelector;

const userIdSelector = state => state.auth && state.auth.userId;

export default userIdSelector;

Add userIdSelector