diff --git a/src/alfagok/static/game.js b/src/alfagok/static/game.js index 6f46c80..e3f9126 100644 --- a/src/alfagok/static/game.js +++ b/src/alfagok/static/game.js @@ -73,10 +73,12 @@ document.addEventListener('alpine:init', () => { if (result.hint && result.hint === 'after') { this.guessesBefore.push(this.guessValue); this.guessesBefore.sort(); + this.guessValue = ''; } if (result.hint && result.hint === 'before') { this.guessesAfter.push(this.guessValue); this.guessesAfter.sort(); + this.guessValue = ''; } if (result.hint && result.hint === 'it') { console.log('gevonden!');