mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2026-01-05 23:15:08 +08:00
fix(about): stats not displaying decimal places for small numbers
This commit is contained in:
parent
eb89b838a5
commit
1714dfe162
1 changed files with 2 additions and 2 deletions
|
|
@ -61,7 +61,7 @@ function updateStatsAndHistogram(): void {
|
|||
);
|
||||
|
||||
$(".pageAbout #totalStartedTestsStat .val").text(
|
||||
typingStatsResponseData.testsStarted < 10
|
||||
startedWithMagnitude.rounded < 10
|
||||
? startedWithMagnitude.roundedTo2
|
||||
: startedWithMagnitude.rounded
|
||||
);
|
||||
|
|
@ -78,7 +78,7 @@ function updateStatsAndHistogram(): void {
|
|||
);
|
||||
|
||||
$(".pageAbout #totalCompletedTestsStat .val").text(
|
||||
typingStatsResponseData.testsCompleted < 10
|
||||
completedWIthMagnitude.rounded < 10
|
||||
? completedWIthMagnitude.roundedTo2
|
||||
: completedWIthMagnitude.rounded
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue