summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornickago <ngonella@calpoly.edu>2015-07-01 17:04:10 -0700
committernickago <ngonella@calpoly.edu>2015-07-01 17:04:10 -0700
commit855f3d3630576e0fe65751ef71a82eb0a1200f5e (patch)
treed1d54531b2a868af65bec7f554a3d6eec1853820
parent6f83b0fd2c64f36f59bf0c0ac7fa87f6da1e65c9 (diff)
downloadchat-855f3d3630576e0fe65751ef71a82eb0a1200f5e.tar.gz
chat-855f3d3630576e0fe65751ef71a82eb0a1200f5e.tar.bz2
chat-855f3d3630576e0fe65751ef71a82eb0a1200f5e.zip
Changed ordering of steps for upload to imporve asthetic
-rw-r--r--web/react/components/user_settings.jsx6
1 files changed, 4 insertions, 2 deletions
diff --git a/web/react/components/user_settings.jsx b/web/react/components/user_settings.jsx
index 2e563ff45..add57f147 100644
--- a/web/react/components/user_settings.jsx
+++ b/web/react/components/user_settings.jsx
@@ -844,11 +844,13 @@ var GeneralTab = React.createClass({
updatePicture: function(e) {
if (e.target.files && e.target.files[0]) {
this.setState({ picture: e.target.files[0] });
+
+ this.submitActive = true;
+ this.setState({client_error:null})
+
} else {
this.setState({ picture: null });
}
-
- this.submitActive = true
},
updateSection: function(section) {
this.setState({client_error:""})