From: Carl Worth Date: Wed, 10 Jun 2020 16:19:14 +0000 (-0700) Subject: Empathy: Display player scores at the main screen of the game X-Git-Url: https://git.cworth.org/git?p=lmno.games;a=commitdiff_plain;h=ab3973907487f6195270382e958b318ea8f2044c Empathy: Display player scores at the main screen of the game Leaving each off entirely if unset or 0. --- diff --git a/empathy/empathy.jsx b/empathy/empathy.jsx index 54d6c26..21b766a 100644 --- a/empathy/empathy.jsx +++ b/empathy/empathy.jsx @@ -127,10 +127,12 @@ const PlayerInfo = React.memo(props => {
Players: {props.player.name} + {props.player.score > 0 ? ` (${props.player.score})` : ""} {props.other_players.map(other => ( {", "} {other.name} + {other.score > 0 ? ` (${other.score})` : ""} ))}