diff --git a/src/components/Stats/Timer/Timer.tsx b/src/components/Stats/Timer/Timer.tsx index b9302f4..318ff67 100644 --- a/src/components/Stats/Timer/Timer.tsx +++ b/src/components/Stats/Timer/Timer.tsx @@ -68,7 +68,7 @@ const Timer = () => { saveToLocalStorage(displayedTime, gameState.difficulty as Difficulty, gameState.gridSize); } } - }, [intervalId, gameState.endType, setGameState, displayedTime]); + }, [intervalId, gameState.endType, gameState.difficulty, gameState.gridSize, setGameState, displayedTime]); return (