X-Git-Url: https://git.cworth.org/git?p=lmno.games;a=blobdiff_plain;f=empathy%2Fempathy.jsx;h=3869b3a249f12ff169a62e7dca85a789c4beb2da;hp=407a4fe9cb5cf6f15bcce81e91e2f4c8a3cc9ab1;hb=533300fbcbfec8c219901cbde2d9c6f336939f97;hpb=d82276f171fa3a918e8d78db68e7c5b75404e309 diff --git a/empathy/empathy.jsx b/empathy/empathy.jsx index 407a4fe..3869b3a 100644 --- a/empathy/empathy.jsx +++ b/empathy/empathy.jsx @@ -569,30 +569,37 @@ class Ambiguities extends React.PureComponent { ); } + let still_waiting = null; + if (Object.keys(this.props.players_judging).length) { + still_waiting = [ +

+ Still waiting for the following players: +

, + + ]; + } + if (this.props.players_judged.has(this.props.player.name)) { return (

Submission received

- The following players have completed judging: + The following players have completed judging:{' '} {[...this.props.players_judged].join(', ')}

-

- Still waiting for the following players: -

- + {still_waiting} {move_on_button}
@@ -611,6 +618,7 @@ class Ambiguities extends React.PureComponent { what goes around comes around, so it's best to be generous when judging.

+

{this.props.prompt.prompt}

{this.state.word_sets.map(set => { return (
+ Still waiting for the following players: +

, + + ]; + } + if (this.props.players_answered.has(this.props.player.name)) { return (

Submission received

- The following players have submitted their answers: + The following players have submitted their answers:{' '} {[...this.props.players_answered].join(', ')}

-

- Still waiting for the following players: -

- + {still_waiting} {move_on_button}
@@ -767,7 +782,8 @@ class ActivePrompt extends React.PureComponent {

Remember, you're trying to match your answers with what the other players submit. - Give {this.props.prompt.items} answers for the following prompt: + Give {this.props.prompt.items} answer + {this.props.prompt.items > 1 ? 's' : ''} for the following prompt:

{this.props.prompt.prompt}

@@ -1062,6 +1078,7 @@ class Game extends React.PureComponent { if (state.scores) { return (
+

{state.active_prompt.prompt}

Scores

    {state.scores.scores.map(score => {