- if (this.props.players_answered.has(this.props.player.name)) {
- return (
- <div className="please-wait">
- <h2>Submission received</h2>
- <p>
- The following players have submitted their answers:{' '}
- {[...this.props.players_answered].join(', ')}
- </p>
+ let still_waiting = null;
+ const answering_players = Object.keys(this.props.players_answering);;
+ if (answering_players.length) {
+ still_waiting = (
+ <div>