From 3cc24b1d2a7a0bb6b7278f273592c0ac876f22e4 Mon Sep 17 00:00:00 2001
From: nickago <ngonella@calpoly.edu>
Date: Tue, 18 Aug 2015 13:38:52 -0700
Subject: Clear state info on section change

---
 web/react/components/user_settings_general.jsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'web/react/components/user_settings_general.jsx')

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);
     },
-- 
cgit v1.2.3-1-g7c22

