🐛 Fixed resetting gameState on leaving to settings page

This commit is contained in:
2024-02-18 17:17:15 +01:00
parent 7413a5f6a1
commit 05854e384f
+1 -1
View File
@@ -84,7 +84,7 @@ const LeaderBoard = () => {
<div className='controls'>
<button
className='controlButton home'
onClick={() => setGameState((prev) => ({ ...prev, status: 'settings' }))}
onClick={() => setGameState((prev) => ({ ...prev, status: 'settings', endType: '', placedFlags: 0, bombs: 0, gameTime: '' }))}
>
<Settings />
Paramètres