django-react-boilerplate icon indicating copy to clipboard operation
django-react-boilerplate copied to clipboard

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

Open Dan1ell opened this issue 3 years ago • 0 comments

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.

Dan1ell avatar Aug 07 '21 15:08 Dan1ell