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

MentorForm.submitForm() should pass state, not props.form, to action creator #123

Open
tomduggan85 opened this issue Apr 16, 2018 · 0 comments

Comments

@tomduggan85
Copy link

this.props.postMentorForm(this.props.form, this.props.match.params);

I think the MentorForm component is keeping all of the user's input in this.state, if I'm reading handleInputChange correctly. However, submitForm is passing this.props.form, instead of this.state, as the form data to postMentorForm(). I think this means that the POST will receive the form structure but none of the user's actual form answers.

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