From f25cdbdb08c11fc9cd3e6bbf0748b67d2635ff47 Mon Sep 17 00:00:00 2001 From: ralder Date: Fri, 26 Jun 2015 15:58:34 -0700 Subject: gui: fix broken mailto link in user-popover --- web/react/components/user_profile.jsx | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/web/react/components/user_profile.jsx b/web/react/components/user_profile.jsx index 8ffad737d..648960471 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 ( -- cgit v1.2.3-1-g7c22