load challenge bug fix (#2921) aNOOKisTheGod

Now, when user loads challenge, website navigate him to the test mode, so challenge loads properly now
This commit is contained in:
aNOOBis 2022-05-03 15:01:44 +03:00 committed by GitHub
parent 3fd285b728
commit d9dc65096c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -21,6 +21,7 @@ import * as ModesNotice from "../elements/modes-notice";
import * as ConfigEvent from "../observables/config-event";
import * as ShareTestSettingsPopup from "../popups/share-test-settings-popup";
import { Auth } from "../firebase";
import * as PageController from "../controllers/page-controller";
export let current: MonkeyTypes.CommandsGroup[] = [];
@ -2491,6 +2492,7 @@ Misc.getChallengeList().then((challenges) => {
noIcon: true,
display: challenge.display,
exec: (): void => {
PageController.change("test");
ChallengeController.setup(challenge.name);
TestLogic.restart(false, true);
},