formatting

This commit is contained in:
Patrick McDonagh
2018-08-10 15:02:28 -05:00
parent 9eef3052ff
commit 96f02ef992
2 changed files with 4 additions and 5 deletions

View File

@@ -17,7 +17,7 @@ const INITIAL_STATE = {
last: '', last: '',
companyName: '', companyName: '',
}, },
loading: false, loading: false
}; };
export default (state = INITIAL_STATE, action) => { export default (state = INITIAL_STATE, action) => {
@@ -37,7 +37,7 @@ export default (state = INITIAL_STATE, action) => {
password: '', password: '',
authToken: action.payload.authToken, authToken: action.payload.authToken,
user: action.payload.user, user: action.payload.user,
loading: false, loading: false
}; };
case LOGIN_USER_FAIL: case LOGIN_USER_FAIL:
@@ -45,7 +45,7 @@ export default (state = INITIAL_STATE, action) => {
...state, ...state,
error: 'Authentication failed!', error: 'Authentication failed!',
password: '', password: '',
loading: false, loading: false
}; };
case LOGOUT: case LOGOUT:
@@ -55,4 +55,3 @@ export default (state = INITIAL_STATE, action) => {
return state; return state;
} }
}; };

View File

@@ -4,5 +4,5 @@ import MeshifyReducer from './meshifyReducer';
export default combineReducers({ export default combineReducers({
auth: AuthReducer, auth: AuthReducer,
meshify: MeshifyReducer, meshify: MeshifyReducer
}); });