]> git.cworth.org Git - lmno.games/blobdiff - empathy/empathy.jsx
fixup-add-object-entries-map calls
[lmno.games] / empathy / empathy.jsx
index 011e196b04c86c5c521fd4e1c15029415a20f546..ee92ab3d7b556d2c4d4f2d236363af825efc37b5 100644 (file)
@@ -349,10 +349,6 @@ const PromptOptions = React.memo(props => {
 
 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);
@@ -482,7 +478,7 @@ class Ambiguities extends React.PureComponent {
             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}
@@ -616,7 +612,7 @@ class ActivePrompt extends React.PureComponent {
           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}