fix(leaderboard)!: Replay button now generate new bombs & numbers on first grid click
This commit is contained in:
1 parent
6c86744275
commit
2459654403
3 files changed
+7
-3
No files matched your search
@@ -93,7 +93,7 @@ const LeaderBoard = () => {
|
||||
|
||||
<button
|
||||
className='controlButton replay'
|
||||
onClick={() => setGameState((prev) => ({ ...prev, status: 'idle' }))}
|
||||
onClick={() => setGameState((prev) => ({ ...prev, status: 'idle', endType: '', placedFlags: 0, bombs: 0, gameTime: 0 }))}
|
||||
>
|
||||
<Replay />
|
||||
Rejouer
|
||||
|
||||
Reference in new issue
Block a user