diff --git a/src/client/components/forms/profile.jsx b/src/client/components/forms/profile.jsx index 69b459b556..3df4b305c9 100644 --- a/src/client/components/forms/profile.jsx +++ b/src/client/components/forms/profile.jsx @@ -30,7 +30,6 @@ module.exports = React.createClass({ displayName: 'profileForm', propTypes: { bio: React.PropTypes.string, - email: React.PropTypes.string, id: React.PropTypes.number }, getInitialState() { @@ -38,7 +37,6 @@ module.exports = React.createClass({ return { id: this.props.id, - email: this.props.email, bio: this.props.bio, waiting: false }; @@ -50,7 +48,6 @@ module.exports = React.createClass({ const data = { id: this.state.id, - email: this.refs.email.getValue().trim(), bio: this.refs.bio.getValue().trim() }; @@ -73,14 +70,6 @@ module.exports = React.createClass({ onSubmit={this.handleSubmit} > {loadingElement} - { .then((user) => { const props = { id: user.id, - email: user.email, bio: user.bio }; @@ -61,10 +60,12 @@ router.post('/edit/handler', auth.isAuthenticated, (req, res) => { bbws.put( `/user/${req.body.id}/`, - {bio: req.body.bio, email: req.body.email}, + {bio: req.body.bio}, {accessToken: req.session.bearerToken} ) - .then(res.send) + .then((response) => { + res.send(response); + }) .catch(() => { req.session.error = 'An internal error occurred while modifying profile';