Skip to content

Commit

Permalink
Fixed square bug + updated gitignore
Browse files Browse the repository at this point in the history
  • Loading branch information
Adauji committed Dec 6, 2023
1 parent ba71fe3 commit 7dc07dc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,5 @@
npm-debug.log*
yarn-debug.log*
yarn-error.log*
package-lock.json
package.json
3 changes: 1 addition & 2 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 7dc07dc

Please sign in to comment.