X-Git-Url: https://git.cworth.org/git?p=lmno.games;a=blobdiff_plain;f=empathy%2Fempathy.jsx;h=bc70a85f0df820b34c552de473df8d971352f1b4;hp=4151cf729edf1de6a53151ad49b947aeb2e504d9;hb=0dfce9dfcf903be9bb4bd27a3b9121c81ac4cfa4;hpb=e4c308c3331de77071170b0711505a990eaba617
diff --git a/empathy/empathy.jsx b/empathy/empathy.jsx
index 4151cf7..bc70a85 100644
--- a/empathy/empathy.jsx
+++ b/empathy/empathy.jsx
@@ -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.
- {props.prompts.map(p => )}
+ {props.prompts.map(
+ prompt =>
+ )}
);
});
@@ -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;;
@@ -499,7 +503,7 @@ class Ambiguities extends React.PureComponent {
const response = await fetch_post_json(
`judged/${this.props.prompt.id}`,{
word_groups: this.state.word_sets.map(set => Array.from(set)),
- kudos: Array.from(this.state.starred)
+ kudos: this.state.starred ? Array.from(this.state.starred) : null
}
);