X-Git-Url: https://git.cworth.org/git?p=lmno.games;a=blobdiff_plain;f=empathy%2Fempathy.jsx;h=3869b3a249f12ff169a62e7dca85a789c4beb2da;hp=6133463f35a7a9d6ba4d58cbe8e4188bf4af48a9;hb=533300fbcbfec8c219901cbde2d9c6f336939f97;hpb=f8b6dc7aef51ccc82d163f015612c7640f0be365 diff --git a/empathy/empathy.jsx b/empathy/empathy.jsx index 6133463..3869b3a 100644 --- a/empathy/empathy.jsx +++ b/empathy/empathy.jsx @@ -569,6 +569,28 @@ 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 (
@@ -577,22 +599,7 @@ class Ambiguities extends React.PureComponent { The following players have completed judging:{' '} {[...this.props.players_judged].join(', ')}

-

- Still waiting for the following players: -

- + {still_waiting} {move_on_button}
@@ -732,6 +739,28 @@ class ActivePrompt extends React.PureComponent { ); } + let still_waiting = null; + if (Object.keys(this.props.players_answering).length) { + still_waiting = [ +

+ Still waiting for the following players: +

, + + ]; + } + if (this.props.players_answered.has(this.props.player.name)) { return (
@@ -740,22 +769,7 @@ class ActivePrompt extends React.PureComponent { The following players have submitted their answers:{' '} {[...this.props.players_answered].join(', ')}

-

- Still waiting for the following players: -

- + {still_waiting} {move_on_button}