Make the webapp robust to not receiveing a position. (#4802)

This commit is contained in:
George Goldberg
2016-12-15 10:58:45 +00:00
committed by enahum
parent 0529b253fc
commit d88b4ef888

View File

@@ -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'