RegistrationForm: prevent small error with password matching
This commit is contained in:
@ -90,7 +90,7 @@ class RegistrationForm extends ImmutablePureComponent {
|
||||
}
|
||||
|
||||
onPasswordConfirmChange = e => {
|
||||
const password = this.state.params.get('password');
|
||||
const password = this.state.params.get('password', '');
|
||||
const passwordConfirmation = e.target.value;
|
||||
this.setState({ passwordConfirmation });
|
||||
|
||||
|
||||
Reference in New Issue
Block a user