diff --git a/cycledash/static/js/examine/components/CommentBox.js b/cycledash/static/js/examine/components/CommentBox.js index 70b488e..a337c23 100644 --- a/cycledash/static/js/examine/components/CommentBox.js +++ b/cycledash/static/js/examine/components/CommentBox.js @@ -246,7 +246,8 @@ var VCFCommentViewer = React.createClass({ var markedDownText = marked(plainText); var user = this.props.user; - var authorName = user != null ? user.username : "Anonymous"; + var authorName = + (user !== undefined && user !== null) ? user.username : "Anonymous"; return (