diff --git a/src/games/battleship/BattleShipBoard.tsx b/src/games/battleship/BattleShipBoard.tsx index f7f4979..2d31392 100644 --- a/src/games/battleship/BattleShipBoard.tsx +++ b/src/games/battleship/BattleShipBoard.tsx @@ -39,7 +39,6 @@ export default function BattleShipBoard({ const myIndex = players.findIndex((p) => p.user_id === myUserId); const oppIndex = myIndex === 0 ? 1 : 0; - console.log(metadata, "metadata"); const phase = metadata["phase"] ?? "lobby"; const isMyTurn = phase === "battle" && turn === myIndex; @@ -68,8 +67,10 @@ export default function BattleShipBoard({ function handleShoot(r: number, c: number) { sendMatchData(matchId!, 1, { action: "shoot", - row: r, - col: c, + data: { + row: r, + col: c, + } }); }