mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2024-09-21 15:56:24 +08:00
parsing to float
This commit is contained in:
parent
baaac84e13
commit
6748f30b15
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue