From dbd1cb24f8b3707d67fe79b50cf1392593aa9678 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20FAMIBELLE-PRONZOLA?= Date: Wed, 8 May 2024 20:06:50 +0400 Subject: [PATCH] Fix timer when restarting game --- js/map.js | 1 + 1 file changed, 1 insertion(+) diff --git a/js/map.js b/js/map.js index ecba4f9..13874a5 100644 --- a/js/map.js +++ b/js/map.js @@ -112,6 +112,7 @@ function resetGame() { ko.innerText = 0 correctAnswers.clear() clearInterval(intervalId) + intervalId = null gameTime = 0 gamePenalty = 0 }