diff options
author | George Goldberg <george@gberg.me> | 2016-12-15 10:58:45 +0000 |
---|---|---|
committer | enahum <nahumhbl@gmail.com> | 2016-12-15 07:58:45 -0300 |
commit | d88b4ef888c25df05e2f7c6ca5cd73da15cf7fe9 (patch) | |
tree | f79facc6e950f0c5ef0882539d36d4095a37bdd3 /webapp/components/user_profile.jsx | |
parent | 0529b253fcd37fc5f8ab97caaae6e9fcc38c6f68 (diff) | |
download | chat-d88b4ef888c25df05e2f7c6ca5cd73da15cf7fe9.tar.gz chat-d88b4ef888c25df05e2f7c6ca5cd73da15cf7fe9.tar.bz2 chat-d88b4ef888c25df05e2f7c6ca5cd73da15cf7fe9.zip |
Make the webapp robust to not receiveing a position. (#4802)
Diffstat (limited to 'webapp/components/user_profile.jsx')
-rw-r--r-- | webapp/components/user_profile.jsx | 4 |
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' |