From: Carl Worth Date: Thu, 11 Jun 2020 23:01:06 +0000 (-0700) Subject: empathy: Add a comman between player names X-Git-Url: https://git.cworth.org/git?p=lmno.games;a=commitdiff_plain;h=413b73b9282a294e20dc400e243a57a0a6a1d12e empathy: Add a comman between player names And also simplify the code quite a bit, (using a simple join() function instead of a map with multiple span and literal {" "} elements. --- diff --git a/empathy/empathy.jsx b/empathy/empathy.jsx index 8c7b917..fcfea4d 100644 --- a/empathy/empathy.jsx +++ b/empathy/empathy.jsx @@ -656,12 +656,7 @@ class Game extends React.PureComponent { {state.scores.words.map(word => { return (
  • - {word.word}: - {word.players.map(p => { - return ( - {p}{" "} - ); - })} + {`${word.word}: ${word.players.join(', ')}`}
  • ); })}