mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-11-09 13:44:29 +08:00
fix(account page): results being put in the wrong histogram bucket
This commit is contained in:
parent
f57bac8071
commit
0920010f5e
1 changed files with 2 additions and 2 deletions
|
|
@ -544,8 +544,8 @@ async function fillContent(): Promise<void> {
|
|||
}
|
||||
|
||||
const bucketSize = typingSpeedUnit.histogramDataBucketSize;
|
||||
const bucket = Math.round(
|
||||
typingSpeedUnit.fromWpm(result.wpm) / bucketSize
|
||||
const bucket = Math.floor(
|
||||
Math.round(typingSpeedUnit.fromWpm(result.wpm)) / bucketSize
|
||||
);
|
||||
|
||||
//grow array if needed
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue