mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2026-01-08 08:25:05 +08:00
setting result calculating to true earlier
This commit is contained in:
parent
9ff57a773f
commit
b766c626b3
1 changed files with 1 additions and 1 deletions
|
|
@ -1543,6 +1543,7 @@ function buildCompletedEvent(difficultyFailed: boolean): CompletedEvent {
|
|||
|
||||
export async function finish(difficultyFailed = false): Promise<void> {
|
||||
if (!TestState.isActive) return;
|
||||
TestUI.setResultCalculating(true);
|
||||
const now = performance.now();
|
||||
TestStats.setEnd(now);
|
||||
|
||||
|
|
@ -1560,7 +1561,6 @@ export async function finish(difficultyFailed = false): Promise<void> {
|
|||
TestStats.setEnd(TestInput.keypressTimings.spacing.last);
|
||||
}
|
||||
|
||||
TestUI.setResultCalculating(true);
|
||||
TestUI.setResultVisible(true);
|
||||
TestState.setActive(false);
|
||||
Replay.stopReplayRecording();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue