Skip to content

Commit

Permalink
fix: winrate percent
Browse files Browse the repository at this point in the history
  • Loading branch information
haxgun committed Oct 29, 2023
1 parent 6f7c72c commit 82b43a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/overlay.js
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ async function WinLoseVisual(win, lose) {
const totalGames = win + lose;
const winPercentage = (win / totalGames) * 100;
if (win + lose !== 0) {
wlProccent.innerHTML = `(${winPercentage}%)`;
wlProccent.innerHTML = `(${winPercentage.toFixed()}%)`;
}
}

Expand Down

0 comments on commit 82b43a9

Please sign in to comment.