parsing to float

This commit is contained in:
Miodec 2022-03-03 00:46:56 +01:00
parent baaac84e13
commit 6748f30b15

View file

@ -529,7 +529,7 @@ export function update(): void {
tt = (result.mode2 / result.wpm) * 60;
}
} else {
tt = result.testDuration;
tt = parseFloat(result.testDuration as unknown as string); //legacy results could have a string here
}
if (result.incompleteTestSeconds != undefined) {
tt += result.incompleteTestSeconds;