summaryrefslogtreecommitdiffstats
path: root/web/react/components/user_settings_general.jsx
diff options
context:
space:
mode:
authornickago <ngonella@calpoly.edu>2015-08-18 13:38:52 -0700
committernickago <ngonella@calpoly.edu>2015-08-18 13:54:17 -0700
commit3cc24b1d2a7a0bb6b7278f273592c0ac876f22e4 (patch)
treeec573d8bd1dfc8ffaebb667e3900144888cb9c87 /web/react/components/user_settings_general.jsx
parentbaebfdcf9f8aed11f76f028fc5d2a8d2b43c6009 (diff)
downloadchat-3cc24b1d2a7a0bb6b7278f273592c0ac876f22e4.tar.gz
chat-3cc24b1d2a7a0bb6b7278f273592c0ac876f22e4.tar.bz2
chat-3cc24b1d2a7a0bb6b7278f273592c0ac876f22e4.zip
Clear state info on section change
Diffstat (limited to 'web/react/components/user_settings_general.jsx')
-rw-r--r--web/react/components/user_settings_general.jsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/react/components/user_settings_general.jsx b/web/react/components/user_settings_general.jsx
index 10fec2933..5e7bbcb51 100644
--- a/web/react/components/user_settings_general.jsx
+++ b/web/react/components/user_settings_general.jsx
@@ -163,7 +163,7 @@ module.exports = React.createClass({
}
},
updateSection: function(section) {
- this.setState({clientError: ''});
+ this.setState(assign({}, this.getInitialState(), {clientError: ''}));
this.submitActive = false;
this.props.updateSection(section);
},