mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-03-04 18:53:26 +08:00
fix(typing): allow repeated quote tests to be saved (again)
This commit is contained in:
parent
1d79d87d89
commit
f2714c0a43
1 changed files with 4 additions and 0 deletions
|
@ -831,6 +831,10 @@ export async function finish(difficultyFailed = false): Promise<void> {
|
|||
const now = performance.now();
|
||||
TestStats.setEnd(now);
|
||||
|
||||
if (TestState.isRepeated && Config.mode === "quote") {
|
||||
TestState.setRepeated(false);
|
||||
}
|
||||
|
||||
await Misc.sleep(1); //this is needed to make sure the last keypress is registered
|
||||
if (TestInput.input.current.length !== 0) {
|
||||
TestInput.input.pushHistory();
|
||||
|
|
Loading…
Reference in a new issue