Skip to content

Commit

Permalink
lint fix: better null comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
armish committed Sep 3, 2015
1 parent c8f5787 commit 1ea942d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cycledash/static/js/examine/components/CommentBox.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
<div className='comments'>
Expand Down

0 comments on commit 1ea942d

Please sign in to comment.