Use grace in test timer when setting is on

This commit is contained in:
Otard95 2021-05-30 20:28:21 +02:00
parent 56e8d3a065
commit 5326fdd3fe

View file

@ -38,7 +38,11 @@ export function start() {
TestStats.pushToRawHistory(wpmAndRaw.raw);
Monkey.updateFastOpacity(wpmAndRaw.wpm);
let acc = Misc.roundTo2(TestStats.calculateAccuracy());
let acc = Misc.roundTo2(
Config.minAccGrace === "on"
? TestStats.calculateAccuracyWithGrace()
: TestStats.calculateAccuracy()
);
if (Funbox.active === "layoutfluid" && Config.mode === "time") {
const layouts = Config.customLayoutfluid