fixed users reducer and seperate create state

This commit is contained in:
Sebastian Sdorra
2018-07-25 14:34:00 +02:00
parent 7b921da174
commit 9c6882ee6e
5 changed files with 99 additions and 82 deletions

View File

@@ -50,10 +50,8 @@ const mapDispatchToProps = dispatch => {
};
const mapStateToProps = (state, ownProps) => {
if (state.users && state.users.users) {
return {
loading: state.users.users.loading
};
if (state.users && state.users.create) {
return state.users.create;
}
return {};
};