From 4e9bfe84b21940998e45ad8dd79769df5dfed3ee Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Mon, 1 Jun 2020 11:31:45 -0700 Subject: [PATCH] tictactoe: Track API change that /move event now has data named "move" And no longer named "square" as we had it before. --- tictactoe/tictactoe.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tictactoe/tictactoe.jsx b/tictactoe/tictactoe.jsx index 17c966d..25c8a9f 100644 --- a/tictactoe/tictactoe.jsx +++ b/tictactoe/tictactoe.jsx @@ -102,7 +102,7 @@ class Game extends React.Component { } sendMove(i) { - return fetch_post_json("move", { square: i }); + return fetch_post_json("move", { move: i }); } resetState() { -- 2.43.0