X-Git-Url: https://git.cworth.org/git?p=lmno.games;a=blobdiff_plain;f=empathy%2Fempathy.jsx;h=570e585b3076bda4117842acc009a209a357215b;hp=b1f4ab201c71bff8265c88f79186c8234021369a;hb=da31560cbb4678376e32af417a1c9ee47f031330;hpb=e18a603f7a9387f29bbb69ff48d88f597a195d69 diff --git a/empathy/empathy.jsx b/empathy/empathy.jsx index b1f4ab2..570e585 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 + })) } );