django-react-boilerplate
django-react-boilerplate copied to clipboard
Form field validation not working due to typo (400 Bad Request)
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.