]> git.cworth.org Git - lmno.games/commitdiff
tictactoe: Track API change that /move event now has data named "move"
authorCarl Worth <cworth@cworth.org>
Mon, 1 Jun 2020 18:31:45 +0000 (11:31 -0700)
committerCarl Worth <cworth@cworth.org>
Mon, 1 Jun 2020 18:31:45 +0000 (11:31 -0700)
And no longer named "square" as we had it before.

tictactoe/tictactoe.jsx

index 17c966dc9453a2ffebdb2581b7a696be9ba691b0..25c8a9f887742312c4537fca678823628be1190d 100644 (file)
@@ -102,7 +102,7 @@ class Game extends React.Component {
   }
 
   sendMove(i) {
   }
 
   sendMove(i) {
-    return fetch_post_json("move", { square: i });
+    return fetch_post_json("move", { move: i });
   }
 
   resetState() {
   }
 
   resetState() {