summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
79ef861)
An explicit clause of "not on a team" is more clear than the dangling
"on team: ".
return (
<div className="player-info">
<h2>Player</h2>
return (
<div className="player-info">
<h2>Player</h2>
- {props.name}, ID: {props.id}, on team: {props.team}
+ {props.name}, ID: {props.id},
+ {props.team ? ` on team ${props.team}` : " not on a team"}