const LetsPlay = React.memo(props => {
- function handle_click(prompt_id) {
- fetch_post_json
- }
-
const quorum = Math.round((props.num_players + 1) / 2);
const max_votes = props.prompts.reduce(
(max_so_far, v) => Math.max(max_so_far, v.votes.length), 0);
return;
}
} else {
- add_message("danger", "An error occurred submitting your answers");
+ add_message("danger", "An error occurred submitting the results of your judging");
return;
}
Still waiting for the following players:
</p>
<ul>
- {Object.entries(this.props.players_judging).map(player => {
+ {Object.keys(this.props.players_judging).map(player => {
return (
<li
key={player}
Still waiting for the following players:
</p>
<ul>
- {Object.entries(this.props.players_answering).map(player => {
+ {Object.keys(this.props.players_answering).map(player => {
return (
<li
key={player}