Skip to content

Commit

Permalink
fix(about): stats not displaying decimal places for small numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
Miodec committed Oct 30, 2023
1 parent eb89b83 commit 1714dfe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/ts/pages/about.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ function updateStatsAndHistogram(): void {
);

$(".pageAbout #totalStartedTestsStat .val").text(
typingStatsResponseData.testsStarted < 10
startedWithMagnitude.rounded < 10
? startedWithMagnitude.roundedTo2
: startedWithMagnitude.rounded
);
Expand All @@ -78,7 +78,7 @@ function updateStatsAndHistogram(): void {
);

$(".pageAbout #totalCompletedTestsStat .val").text(
typingStatsResponseData.testsCompleted < 10
completedWIthMagnitude.rounded < 10
? completedWIthMagnitude.roundedTo2
: completedWIthMagnitude.rounded
);
Expand Down

0 comments on commit 1714dfe

Please sign in to comment.