Closed marcmll closed 4 years ago
This pull request is being automatically deployed with Vercel (learn more). To see the status of your deployment, click below or on the icon next to each commit.
🔍 Inspect: https://vercel.com/marcmll/next-snake/44k0lsyfr ✅ Preview: https://next-snake-git-bugfix-highscore-message.marcmll.vercel.app
Bug Description:
The "new highscore" message occurs on every "game over" screen, once the current highscore is broken for the first time
Bug Preview:
Fix:
To fix this, the newHighscore state is set to false in the startGame function.