Torniojaws / vortech-front

React frontend for the Vortech website
https://vortechmusic.com
MIT License
0 stars 0 forks source link

Register page is broken #60

Closed Torniojaws closed 6 years ago

Torniojaws commented 6 years ago

It has broken at some point. Possibly when converting to ES6.

There's two of these: TypeError: Cannot read property 'bind' of undefined

It seems to refer to handleNameChange, but it's a bit unclear if that's the actual location.

Torniojaws commented 6 years ago

Ah yes, the functions were converted into a single handler handleChange, but the constructor still has the references to the non-existing functions:

    this.handleNameChange = this.handleNameChange.bind(this);
    this.handleEmailChange = this.handleEmailChange.bind(this);
    this.handleUsernameChange = this.handleUsernameChange.bind(this);
    this.handlePasswordChange = this.handlePasswordChange.bind(this);

So remove the last 3, and rename handleNameChange to handleChange

Torniojaws commented 6 years ago

Should work now, will be deployed in the next version update.