mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2024-09-20 15:26:15 +08:00
fix(about): stats not displaying decimal places for small numbers
This commit is contained in:
parent
eb89b838a5
commit
1714dfe162
|
@ -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…
Reference in a new issue