diff options
Diffstat (limited to 'web/react/components/user_settings_security.jsx')
-rw-r--r-- | web/react/components/user_settings_security.jsx | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/web/react/components/user_settings_security.jsx b/web/react/components/user_settings_security.jsx index 82828743e..a9f62097a 100644 --- a/web/react/components/user_settings_security.jsx +++ b/web/react/components/user_settings_security.jsx @@ -107,7 +107,6 @@ export default class SecurityTab extends React.Component { var updateSectionStatus; var passwordSection; - var self = this; if (this.props.activeSection === 'password') { var inputs = []; var submit = null; @@ -163,10 +162,10 @@ export default class SecurityTab extends React.Component { } updateSectionStatus = function resetSection(e) { - self.props.updateSection(''); - self.setState({currentPassword: '', newPassword: '', confirmPassword: '', serverError: null, passwordError: null}); + this.props.updateSection(''); + this.setState({currentPassword: '', newPassword: '', confirmPassword: '', serverError: null, passwordError: null}); e.preventDefault(); - }; + }.bind(this); passwordSection = ( <SettingItemMax @@ -201,8 +200,8 @@ export default class SecurityTab extends React.Component { } updateSectionStatus = function updateSection() { - self.props.updateSection('password'); - }; + this.props.updateSection('password'); + }.bind(this); passwordSection = ( <SettingItemMin |