summaryrefslogtreecommitdiffstats
path: root/webapp/components/user_settings
diff options
context:
space:
mode:
authorDavid Lu <david.lu@hotmail.com>2016-06-21 21:22:34 -0400
committerJoram Wilander <jwawilander@gmail.com>2016-06-21 21:22:34 -0400
commit295d26570985fe6cb7e03395e760bbb93bfb50b2 (patch)
treea0659f08dbaa49c8695b2c4ca71d9ab25ab7d696 /webapp/components/user_settings
parenteb76e61534742b126a35afe12da1deb9c4f8a7d6 (diff)
downloadchat-295d26570985fe6cb7e03395e760bbb93bfb50b2.tar.gz
chat-295d26570985fe6cb7e03395e760bbb93bfb50b2.tar.bz2
chat-295d26570985fe6cb7e03395e760bbb93bfb50b2.zip
Reset MFA error upon update (#3387)
Diffstat (limited to 'webapp/components/user_settings')
-rw-r--r--webapp/components/user_settings/user_settings_security.jsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/webapp/components/user_settings/user_settings_security.jsx b/webapp/components/user_settings/user_settings_security.jsx
index 10ac9131b..4cf28715b 100644
--- a/webapp/components/user_settings/user_settings_security.jsx
+++ b/webapp/components/user_settings/user_settings_security.jsx
@@ -306,7 +306,7 @@ class SecurityTab extends React.Component {
updateSectionStatus = function resetSection(e) {
this.props.updateSection('');
- this.setState({mfaToken: '', mfaShowQr: false, mfaError: null});
+ this.setState({mfaToken: '', mfaShowQr: false, mfaError: null, serverError: null});
e.preventDefault();
}.bind(this);