Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

create project error from ProjectReducer.js #15

Open
elolelo opened this issue Apr 28, 2019 · 0 comments
Open

create project error from ProjectReducer.js #15

elolelo opened this issue Apr 28, 2019 · 0 comments

Comments

@elolelo
Copy link

elolelo commented Apr 28, 2019

const initState = {}
const projectReducer = (state = initState, action) => {
switch (action.type) {
case 'CREATE_PROJECT_SUCCESS':
console.log('create project success');
return state;
case 'CREATE_PROJECT_ERROR':
console.log('create project error');
return state;
default:
return state;
}
};

export default projectReducer;

the only thing that gets console logged is create project error. Should this be the case?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant