diff --git a/src/main/client/src/feature/game/Game.jsx b/src/main/client/src/feature/game/Game.jsx
index 26d238a..64e5554 100644
--- a/src/main/client/src/feature/game/Game.jsx
+++ b/src/main/client/src/feature/game/Game.jsx
@@ -84,7 +84,7 @@ function Board({gameState, setGameState}) {
let [cursor_x, setCursor_x] = useState(-1)
let [cursor_y, setCursor_y] = useState(-1)
let timeout = useTimeoutStore(state => state.timeout)
- let fulltime = useTimeoutStore(state => state.fulltime)
+ let timesetting = gameState.timesetting
let setTimeout = useTimeoutStore(state => state.setTimeout)
let timeoutRef = useRef()
timeoutRef.current = timeout
@@ -119,7 +119,7 @@ function Board({gameState, setGameState}) {
if (intervalIdRef.current) {
clearInterval(intervalIdRef.current)
}
- setTimeout(fulltime)
+ setTimeout(timesetting)
intervalIdRef.current = setInterval(() => {
let t = timeoutRef.current - 1
setTimeout(t)
@@ -131,7 +131,7 @@ function Board({gameState, setGameState}) {
}
}, 1000)
- }, [setTimeout, fulltime, setGameState])
+ }, [setTimeout, timesetting, setGameState])
useEffect(() => {
resetCountdown()
@@ -372,7 +372,7 @@ function Board({gameState, setGameState}) {
if (board[cursor_y][cursor_x].isForbidden(currentColor(gameState))) {
return
}
- if (cursor_x == forbidden_x && cursor_y == forbidden_y) {
+ if (cursor_x === forbidden_x && cursor_y === forbidden_y) {
return
}
if (!showMoveNumbers && !counting && !end) {
diff --git a/src/main/client/src/feature/game/GamePanel.jsx b/src/main/client/src/feature/game/GamePanel.jsx
index c045d0e..302bdca 100644
--- a/src/main/client/src/feature/game/GamePanel.jsx
+++ b/src/main/client/src/feature/game/GamePanel.jsx
@@ -87,7 +87,7 @@ function WhoIsWho({gameState}) {
let {black, white, counting} = gameState
let end = gameHasEnded(gameState)
let timeout = useTimeoutStore(state => state.timeout)
- let fulltime = useTimeoutStore(state => state.fulltime)
+ let timesetting = gameState.timesetting
let color = currentColor(gameState)
let navigate = useNavigate()
let onExit = useCallback(() => {
@@ -107,9 +107,9 @@ function WhoIsWho({gameState}) {