diff options
-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' |