From 1a2e16884ccf3e26e9c4ae3389b87ca3fa9133de Mon Sep 17 00:00:00 2001 From: Miodec Date: Tue, 30 Jan 2024 21:30:23 +0100 Subject: [PATCH] fix(account page): rounding wpm instead of flooring when generating the speed histogram --- frontend/src/ts/pages/account.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/ts/pages/account.ts b/frontend/src/ts/pages/account.ts index edcdadba42bb..2840e550f901 100644 --- a/frontend/src/ts/pages/account.ts +++ b/frontend/src/ts/pages/account.ts @@ -544,7 +544,7 @@ async function fillContent(): Promise { } const bucketSize = typingSpeedUnit.histogramDataBucketSize; - const bucket = Math.floor( + const bucket = Math.round( typingSpeedUnit.fromWpm(result.wpm) / bucketSize );