Permalink
Browse files

My tweak to step 9 of the tutorial, displaying a generic name for TOD…

…O items with no username
  • Loading branch information...
itamaro committed Nov 28, 2015
1 parent f95e1e8 commit 7f7c936a9dbd2c5513c264e5ca1eac2ea14ddb3c
Showing with 3 additions and 1 deletion.
  1. +3 −1 Task.jsx
@@ -35,7 +35,9 @@ Task = React.createClass({
onClick={this.toggleChecked} />
<span className="text">
<strong>{this.props.task.username}</strong>: {this.props.task.text}
<strong>
{this.props.task.username ? this.props.task.username : '<someone>'}
</strong>: {this.props.task.text}
</span>
</li>
);

0 comments on commit 7f7c936

Please sign in to comment.