From: Carl Worth <cworth@cworth.org>
Date: Thu, 11 Jun 2020 23:00:23 +0000 (-0700)
Subject: empathy: Track change in the server's implementation of /judging
X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=9dd0ab6d60e81d39f1a66f4a53fd3a19bd51ffe9;p=lmno.games

empathy: Track change in the server's implementation of /judging

This endpoint now requires the data to have a top-level "word_groups"
property, so here it is.
---

diff --git a/empathy/empathy.jsx b/empathy/empathy.jsx
index 60540c0..8c7b917 100644
--- a/empathy/empathy.jsx
+++ b/empathy/empathy.jsx
@@ -332,8 +332,11 @@ class Ambiguities extends React.PureComponent {
   }
 
   async handle_submit() {
-    const response = await fetch_post_json(`judging/${this.props.prompt.id}`,
-                                           this.state.word_groups);
+    const response = await fetch_post_json(
+      `judging/${this.props.prompt.id}`,{
+        word_groups: this.state.word_groups
+      }
+    );
 
     if (response.status === 200) {
       const result = await response.json();