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

Form field validation not working due to typo (400 Bad Request) #16

Open
Dan1ell opened this issue Aug 7, 2021 · 0 comments
Open

Form field validation not working due to typo (400 Bad Request) #16

Dan1ell opened this issue Aug 7, 2021 · 0 comments

Comments

@Dan1ell
Copy link

Dan1ell commented Aug 7, 2021

In part 4 of the tutorial, the field validation doesn't fire up when we hit send with empty username and password fields.

In the tutorial code, there is a typo in SignupActions.js on line 23.
It says
if (error.resposne) {

instead of
if (error.response) {

Because of this CREATE_USER_ERROR is never set and later on in the tutorial, when connecting to the api, sending the form with empty fields results in a 400 Bad Request response.

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