not adding decimal seconds to the graph in time mode

This commit is contained in:
Jack 2021-05-09 19:16:43 +01:00
parent 50f4779be7
commit fc57e472e7

View file

@ -977,7 +977,10 @@ export function finish(difficultyFailed = false) {
Keymap.hide();
Funbox.activate("none", null);
if (Misc.roundTo2(TestStats.calculateTestSeconds()) % 1 != 0) {
if (
Misc.roundTo2(TestStats.calculateTestSeconds()) % 1 != 0 &&
Config.mode !== "time"
) {
TestStats.setLastSecondNotRound();
}