From ee31b010acde44a934da0fba89af1bce79d0dd06 Mon Sep 17 00:00:00 2001 From: Vishesh 'ironeagle' Bangotra Date: Wed, 3 Dec 2025 21:40:18 +0530 Subject: [PATCH] fixes --- src/games/battleship/BattleShipBoard.tsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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, + } }); }