Skip to content

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

Description

@Dan1ell

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions