diff --git a/game/src/main.js b/game/src/main.js index 76f84ae..b2d379f 100644 --- a/game/src/main.js +++ b/game/src/main.js @@ -32,12 +32,12 @@ gameStart.addEventListener('click', async (event) => { button.dataset.isActive = 'true'; gameEnd.dataset.isActive = 'false'; if (!isTimerInProgress()) { - await animate(); + animate(); return; } await startTimer(); if (isButtonActive(gameStart)) { - await animate(); + setTimeout(() => {animate()}); } }); gameEnd.addEventListener('click', (event) => {