mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-10-06 05:26:54 +08:00
verifying challenge later
This commit is contained in:
parent
25ec1c54e7
commit
7fedef60b7
1 changed files with 3 additions and 2 deletions
|
@ -1535,8 +1535,6 @@ export async function finish(difficultyFailed = false) {
|
|||
customText: cdata,
|
||||
};
|
||||
|
||||
completedEvent.challenge = ChallengeContoller.verify(completedEvent);
|
||||
|
||||
if (Config.mode !== "custom") {
|
||||
delete completedEvent.CustomText;
|
||||
}
|
||||
|
@ -1732,6 +1730,9 @@ export async function finish(difficultyFailed = false) {
|
|||
AccountButton.loading(false);
|
||||
Notifications.add("You are offline. Result not saved.", -1);
|
||||
} else {
|
||||
completedEvent.challenge = ChallengeContoller.verify(
|
||||
completedEvent
|
||||
);
|
||||
axiosInstance
|
||||
.post("/results/add", {
|
||||
result: completedEvent,
|
||||
|
|
Loading…
Add table
Reference in a new issue