mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2024-09-21 07:46:15 +08:00
destroying on test page
This commit is contained in:
parent
90a0d3abca
commit
7998b37b41
|
@ -155,7 +155,10 @@ function getUnits(): unknown {
|
|||
|
||||
export async function reinstate(): boolean {
|
||||
if (!rampReady) return;
|
||||
if (ActivePage.get() === "test" && !TestUI.resultVisible) return;
|
||||
if (ActivePage.get() === "test" && !TestUI.resultVisible) {
|
||||
ramp.destroyUnits("all");
|
||||
return;
|
||||
}
|
||||
await ramp.destroyUnits("all");
|
||||
await ramp.addUnits(getUnits());
|
||||
await ramp.displayUnits();
|
||||
|
|
Loading…
Reference in a new issue