]> git.cworth.org Git - lmno.games/blobdiff - empathy/empathy.jsx
Eliminate some debugging calls to console.log
[lmno.games] / empathy / empathy.jsx
index 4151cf729edf1de6a53151ad49b947aeb2e504d9..5782b7879076bdd8812bccffc58a281b63760d5b 100644 (file)
@@ -414,7 +414,13 @@ const PromptOptions = React.memo(props => {
         Select any categories below that you'd like to play.
         You can choose as many as you'd like.
       </p>
-    {props.prompts.map(p => <PromptOption prompt={p} player={props.player} />)}
+      {props.prompts.map(
+        prompt => <PromptOption
+                    key={prompt.id}
+                    prompt={prompt}
+                    player={props.player}
+                  />
+      )}
     </div>
   );
 });
@@ -462,11 +468,9 @@ class Ambiguities extends React.PureComponent {
 
     for (let word of props.words) {
       const word_canon = canonize(word);
-      console.log("Canonized " + word + " to " + word_canon);
       let found_match = false;
       for (let set of word_sets) {
         const set_canon = canonize(set.values().next().value);
-        console.log("Comparing " + word_canon + " to " + set_canon);
         if (word_canon === set_canon) {
           set.add(word);
           found_match = true;;