diff options
author | Reed Garmsen <rgarmsen2295@gmail.com> | 2015-09-02 09:46:40 -0700 |
---|---|---|
committer | Reed Garmsen <rgarmsen2295@gmail.com> | 2015-09-02 09:46:40 -0700 |
commit | aac83dcedc644dfc23fc46366e54c65e0c86c5b9 (patch) | |
tree | a3672c07f149e4576021ec81fe62b183fc6eee66 /web/react/components/signup_user_complete.jsx | |
parent | e2a24f40b750886156cef33a38218315c06aef35 (diff) | |
download | chat-aac83dcedc644dfc23fc46366e54c65e0c86c5b9.tar.gz chat-aac83dcedc644dfc23fc46366e54c65e0c86c5b9.tar.bz2 chat-aac83dcedc644dfc23fc46366e54c65e0c86c5b9.zip |
Additional refactoring according to issues not caught by eslint
Diffstat (limited to 'web/react/components/signup_user_complete.jsx')
-rw-r--r-- | web/react/components/signup_user_complete.jsx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/web/react/components/signup_user_complete.jsx b/web/react/components/signup_user_complete.jsx index c19cac95d..67e85d4de 100644 --- a/web/react/components/signup_user_complete.jsx +++ b/web/react/components/signup_user_complete.jsx @@ -31,7 +31,7 @@ export default class SignupUserComplete extends React.Component { handleSubmit(e) { e.preventDefault(); - this.state.user.username = this.refs.name.getDOMNode().value.trim(); + this.state.user.username = React.findDOMNode(this.refs.name).value.trim(); if (!this.state.user.username) { this.setState({nameError: 'This field is required', emailError: '', passwordError: '', serverError: ''}); return; @@ -51,13 +51,13 @@ export default class SignupUserComplete extends React.Component { return; } - this.state.user.email = this.refs.email.getDOMNode().value.trim(); + this.state.user.email = React.findDOMNode(this.refs.email).value.trim(); if (!this.state.user.email) { this.setState({nameError: '', emailError: 'This field is required', passwordError: ''}); return; } - this.state.user.password = this.refs.password.getDOMNode().value.trim(); + this.state.user.password = React.findDOMNode(this.refs.password).value.trim(); if (!this.state.user.password || this.state.user.password .length < 5) { this.setState({nameError: '', emailError: '', passwordError: 'Please enter at least 5 characters', serverError: ''}); return; |