Skip to content

Commit

Permalink
style(lib/stats): fix linter warning
Browse files Browse the repository at this point in the history
  • Loading branch information
mikesprague committed May 19, 2024
1 parent 35b7cd3 commit 3a3a9fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/stats.js
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ export const showStats = () => {

let scale = 100 / Math.max(...guessCountArray);

scale = scale === Infinity ? 0 : scale;
scale = scale === Number.Infinity ? 0 : scale;
const currentGuessCount =
gameState.isGameOver && gameState.wonGame ? gameState.currentRow + 1 : null;
let timerHandle;
Expand Down

0 comments on commit 3a3a9fd

Please sign in to comment.