Ability to loose game

This commit is contained in:
2024-02-18 09:50:33 +01:00
parent e21910547a
commit 8219634b9c
8 changed files with 113 additions and 28 deletions
+2 -2
View File
@@ -47,7 +47,7 @@ const LeaderBoard = () => {
if (data.length === 0) {
getData();
}
}, []);
}, [data.length]);
return (
<>
@@ -93,7 +93,7 @@ const LeaderBoard = () => {
<button
className='controlButton replay'
onClick={() => setGameState((prev) => ({ ...prev, status: 'idle', endType: '', placedFlags: 0, bombs: 0, gameTime: 0 }))}
onClick={() => setGameState((prev) => ({ ...prev, status: 'idle', endType: '', placedFlags: 0, bombs: 0, gameTime: '' }))}
>
<Replay />
Rejouer