diff --git a/src/alfagok/static/game.js b/src/alfagok/static/game.js index e3f9126..05af3b2 100644 --- a/src/alfagok/static/game.js +++ b/src/alfagok/static/game.js @@ -48,7 +48,6 @@ document.addEventListener('alpine:init', () => { return; } - this.nrGuesses++; if (this.startTime === null) { console.log('Setting startTime to now'); this.startTime = new Date(); @@ -70,6 +69,7 @@ document.addEventListener('alpine:init', () => { } return; } + this.nrGuesses++; if (result.hint && result.hint === 'after') { this.guessesBefore.push(this.guessValue); this.guessesBefore.sort(); diff --git a/src/alfagok/templates/index.html b/src/alfagok/templates/index.html index b09e1bf..c0b0a32 100644 --- a/src/alfagok/templates/index.html +++ b/src/alfagok/templates/index.html @@ -12,7 +12,7 @@