diff -r 469da13402e2 -r 2c2a9c8dc216 client/src/components/Register.js --- a/client/src/components/Register.js Mon Jun 26 17:40:28 2017 +0200 +++ b/client/src/components/Register.js Mon Jun 26 17:50:24 2017 +0200 @@ -17,6 +17,12 @@ this.props.authActions.registerSubmit(username, email, password1, password2); } + submit = (e) => { + e.preventDefault(); + + this.register(); + } + onClickLogin = (e) => { e.preventDefault(); this.props.history.push('/login'); @@ -45,7 +51,7 @@ -
+ Username { this.username = ref; }} /> @@ -66,7 +72,7 @@ { this.password2 = ref; }} /> { this.renderErrorMessage(errorMessages, 'password2') } - +