Skip to content

Commit

Permalink
fix(account page): rounding wpm instead of flooring when generating t…
Browse files Browse the repository at this point in the history
…he speed histogram
  • Loading branch information
Miodec committed Jan 30, 2024
1 parent 4769922 commit 1a2e168
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/ts/pages/account.ts
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,7 @@ async function fillContent(): Promise<void> {
}

const bucketSize = typingSpeedUnit.histogramDataBucketSize;
const bucket = Math.floor(
const bucket = Math.round(
typingSpeedUnit.fromWpm(result.wpm) / bucketSize
);

Expand Down

0 comments on commit 1a2e168

Please sign in to comment.