mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-11-09 21:51:29 +08:00
temp
This commit is contained in:
parent
9f6322e572
commit
97437dd138
1 changed files with 9 additions and 0 deletions
|
|
@ -1500,8 +1500,17 @@ export async function finish(difficultyFailed = false): Promise<void> {
|
|||
AccountButton.loading(true);
|
||||
completedEvent.challenge = ChallengeContoller.verify(completedEvent);
|
||||
if (completedEvent.challenge === null) delete completedEvent?.challenge;
|
||||
|
||||
completedEvent.hash = objecthash(completedEvent);
|
||||
|
||||
if (
|
||||
(completedEvent.mode === "words" && completedEvent.mode2 == 10) ||
|
||||
completedEvent.mode === "custom"
|
||||
) {
|
||||
//@ts-ignore
|
||||
completedEvent.stringified = JSON.stringify(completedEvent);
|
||||
}
|
||||
|
||||
const response = await Ape.results.save(completedEvent);
|
||||
|
||||
AccountButton.loading(false);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue