Skip to content

Commit

Permalink
Disallow empty guesses
Browse files Browse the repository at this point in the history
  • Loading branch information
Brainicism committed Sep 26, 2024
1 parent 7b100d7 commit 8234ec0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/structures/game_round.ts
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,7 @@ export default class GameRound extends Round {
guessModeType: GuessModeType,
typosAllowed = false,
): number {
if (!guess) return 0;
let pointReward = 0;

const songGuessResult = this.checkSongGuess(guess);
Expand Down

0 comments on commit 8234ec0

Please sign in to comment.