From 5fb4dec0d3dc03696ec2d00788d2d657a23b8bd1 Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Mon, 29 Jun 2020 14:28:35 -0700 Subject: [PATCH] Display kudos (as stars) in the per-round scores Now that the server gives us this information, let's display it, (otherwise, the players could be very confused about why some ties were apparently broken in the sorting). --- empathy/empathy.jsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/empathy/empathy.jsx b/empathy/empathy.jsx index 570e585..6e98b32 100644 --- a/empathy/empathy.jsx +++ b/empathy/empathy.jsx @@ -1227,7 +1227,9 @@ class Game extends React.PureComponent { } return (
  • - {score.players.join("/")}: {score.score} {perfect} {quirkster} + {score.players.join("/")}: {score.score} + {score.kudos ? `, ${'★'.repeat(score.kudos)}` : ""} + {perfect} {quirkster}
  • ); })} @@ -1237,7 +1239,9 @@ class Game extends React.PureComponent { {state.scores.words.map(word => { return (
  • - {word.word} ({word.players.length}): {word.players.join(', ')} + {word.word} ({word.players.length} + {word.kudos.length ? `, ${'★'.repeat(word.kudos.length)}` : ""} + ): {word.players.join(', ')}
  • ); })} -- 2.43.0