summaryrefslogtreecommitdiffstats
path: root/webapp
diff options
context:
space:
mode:
authorGeorge Goldberg <george@gberg.me>2016-12-15 10:58:45 +0000
committerenahum <nahumhbl@gmail.com>2016-12-15 07:58:45 -0300
commitd88b4ef888c25df05e2f7c6ca5cd73da15cf7fe9 (patch)
treef79facc6e950f0c5ef0882539d36d4095a37bdd3 /webapp
parent0529b253fcd37fc5f8ab97caaae6e9fcc38c6f68 (diff)
downloadchat-d88b4ef888c25df05e2f7c6ca5cd73da15cf7fe9.tar.gz
chat-d88b4ef888c25df05e2f7c6ca5cd73da15cf7fe9.tar.bz2
chat-d88b4ef888c25df05e2f7c6ca5cd73da15cf7fe9.zip
Make the webapp robust to not receiveing a position. (#4802)
Diffstat (limited to 'webapp')
-rw-r--r--webapp/components/user_profile.jsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/webapp/components/user_profile.jsx b/webapp/components/user_profile.jsx
index 9cf2464cd..051b8d263 100644
--- a/webapp/components/user_profile.jsx
+++ b/webapp/components/user_profile.jsx
@@ -182,8 +182,8 @@ export default class UserProfile extends React.Component {
dataContent.push(webrtc);
- const position = this.props.user.position.substring(0, Constants.MAX_POSITION_LENGTH);
- if (position) {
+ if (this.props.user.position) {
+ const position = this.props.user.position.substring(0, Constants.MAX_POSITION_LENGTH);
dataContent.push(
<div
data-toggle='tooltip'