From 7dc07dc493aa823856d0e9f863b89d41d7c84577 Mon Sep 17 00:00:00 2001 From: Adauji <5890802@ez.edeka.net> Date: Wed, 6 Dec 2023 12:51:06 +0100 Subject: [PATCH] Fixed square bug + updated gitignore --- .eslintrc.js | 3 ++- .gitignore | 2 ++ src/App.js | 3 +-- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index 1312364..f456370 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -31,6 +31,7 @@ module.exports = { quotes: ["error", "double"], // use Always double quotes "space-before-function-paren": ["error", "never"], // No Space between function and parentheses "react/prop-types": "off", - "jest/expect-expect": 2 + "jest/expect-expect": 2, + "no-debugger":"off" } } diff --git a/.gitignore b/.gitignore index d30f40e..b7af0c2 100644 --- a/.gitignore +++ b/.gitignore @@ -19,3 +19,5 @@ npm-debug.log* yarn-debug.log* yarn-error.log* +package-lock.json +package.json \ No newline at end of file diff --git a/src/App.js b/src/App.js index d70c3cf..2294002 100644 --- a/src/App.js +++ b/src/App.js @@ -225,8 +225,7 @@ export default function Game() { } function handleBot() { - setCurrentMove(0) - setHistory([[Array(9).fill(null)]]) + jumpTo(0) if (bot) { setBotText("activate") setBot(false)