Skip to content

Commit 1552c11

Browse files
committed
missing hardcoded texts changed
1 parent df7a273 commit 1552c11

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/Boxes.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ const Boxes = () => {
2828

2929
const flat = currentBoxes.flat();
3030
flat.forEach((v, i) => {
31-
if (v === "X") arrayX.push(i);
32-
if (v === "O") arrayO.push(i);
31+
if (v === GAME_STATE.player1.textEquivalent) arrayX.push(i);
32+
if (v === GAME_STATE.player2.textEquivalent) arrayO.push(i);
3333
});
3434
GAME_STATE.winnable.every((v) => {
3535
let isWinX = v.every((v) => {

0 commit comments

Comments
 (0)