From 7f4edc5dc8d9d94014f9797777cc117c173cd944 Mon Sep 17 00:00:00 2001 From: Jack Date: Wed, 2 Dec 2020 13:16:53 +0000 Subject: [PATCH] fixed cpm rounding --- src/js/script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/script.js b/src/js/script.js index 70670146d..e190abe1d 100644 --- a/src/js/script.js +++ b/src/js/script.js @@ -1737,7 +1737,7 @@ function showResult(difficultyFailed = false) { $("#result .stats .wpm .top .text").text("cpm"); $("#result .stats .wpm .bottom").attr( "aria-label", - stats.wpm * 5 + ` (${roundTo2(stats.wpm)} wpm)` + roundTo2(stats.wpm * 5) + ` (${roundTo2(stats.wpm)} wpm)` ); $("#result .stats .wpm .bottom").text(Math.round(stats.wpm * 5)); $("#result .stats .raw .bottom").text(Math.round(stats.wpmRaw * 5));