diff options
| author | Thomas Voss <thomasvoss@live.com> | 2022-01-16 22:25:11 +0100 |
|---|---|---|
| committer | Thomas Voss <thomasvoss@live.com> | 2022-01-16 22:25:11 +0100 |
| commit | 31e81bd0dafa8f2c5b43c0d426b333836c32a60e (patch) | |
| tree | e232273ab001e9004fcd68c64e7be67481ad6c71 /draughts/public/javascripts/git@git.thomasvoss.com:draughts | |
| parent | feecdecf2559846da48f08a2faaaefb96732fb59 (diff) | |
Fix bug allowing for negative ongoing games
Previously if the game ended, the players could still spam the resign
button or close their tab to decrement the `stats.ongoingGames'
counter. This patch removes the ability to do so by checking if the
game is still in the environment before doing anything.
Diffstat (limited to 'draughts/public/javascripts/git@git.thomasvoss.com:draughts')
0 files changed, 0 insertions, 0 deletions