diff --git a/frontend/src/components/ShipPlacementScreen.jsx b/frontend/src/components/ShipPlacementScreen.jsx index 493d5df..9e3f900 100644 --- a/frontend/src/components/ShipPlacementScreen.jsx +++ b/frontend/src/components/ShipPlacementScreen.jsx @@ -128,11 +128,11 @@ export default function ShipPlacementScreen({ prev.map((s) => s.id === ship.id ? { - ...s, - x: rot.x, - y: rot.y, - orientation: rot.orientation, - } + ...s, + x: rot.x, + y: rot.y, + orientation: rot.orientation, + } : s ) ) @@ -235,12 +235,12 @@ export default function ShipPlacementScreen({ prev.map((s) => s.id === drag.ship.id ? { - ...s, - placed: true, - x: drag.candidate.x, - y: drag.candidate.y, - orientation: drag.candidate.orientation, - } + ...s, + placed: true, + x: drag.candidate.x, + y: drag.candidate.y, + orientation: drag.candidate.orientation, + } : s ) ) @@ -250,12 +250,12 @@ export default function ShipPlacementScreen({ prev.map((s) => s.id === drag.ship.id ? { - ...s, - placed: false, - x: 0, - y: 0, - orientation: false, - } + ...s, + placed: false, + x: 0, + y: 0, + orientation: false, + } : s ) ) @@ -313,11 +313,9 @@ export default function ShipPlacementScreen({ return (