diff --git a/web/react/components/user_profile.jsx b/web/react/components/user_profile.jsx index 8ffad737d8..648960471a 100644 --- a/web/react/components/user_profile.jsx +++ b/web/react/components/user_profile.jsx @@ -10,8 +10,7 @@ function getStateFromStores(userId) { if (profile == null) { return { profile: { id: "0", username: "..."} }; - } - else { + } else { return { profile: profile }; } } @@ -54,12 +53,11 @@ module.exports = React.createClass({ var name = this.props.overwriteName ? this.props.overwriteName : this.state.profile.username; - var data_content = "" - data_content += "" + var data_content = ""; if (!config.ShowEmail) { - data_content += "
Email not shared
"; + data_content += "
Email not shared
"; } else { - data_content += "
" + this.state.profile.email + "
"; + data_content += "
" + this.state.profile.email + "
"; } return (