mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-10-21 13:06:01 +08:00
impr: blocking quick restart for long tests on result page
Quick restart is already disabled for long tests during the test. This also disables it on the result page, to make sure the user really wants to close the result after a long time typing.
This commit is contained in:
parent
bd2d360fc2
commit
bc56cbc9e1
1 changed files with 1 additions and 1 deletions
|
@ -144,7 +144,7 @@ export function restart(options = {} as RestartOptions): void {
|
|||
event?.preventDefault();
|
||||
return;
|
||||
}
|
||||
if (ActivePage.get() === "test" && !TestUI.resultVisible) {
|
||||
if (ActivePage.get() === "test") {
|
||||
if (!ManualRestart.get()) {
|
||||
if (Config.mode !== "zen") event?.preventDefault();
|
||||
if (
|
||||
|
|
Loading…
Add table
Reference in a new issue