X-Git-Url: https://git.cworth.org/git?p=lmno.games;a=blobdiff_plain;f=empathy%2Fempathy.jsx;h=a9911d760188ba0736a8f8fb1db15057ab97bbc5;hp=53d7763c84f7a27643ac5f90b935dd945c601335;hb=2bb9bc00050a317973c677d8efa697e48ea1eaf6;hpb=c37a82b05938a9013d0ffd6a4f6d28165393f9d8 diff --git a/empathy/empathy.jsx b/empathy/empathy.jsx index 53d7763..a9911d7 100644 --- a/empathy/empathy.jsx +++ b/empathy/empathy.jsx @@ -508,8 +508,11 @@ 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: this.state.starred ? Array.from(this.state.starred) : null + word_groups: this.state.word_sets.map( + set => ({ + words: Array.from(set), + kudos: this.state.starred === set ? true : false + })) } ); @@ -1215,12 +1218,18 @@ class Game extends React.PureComponent {