This commit is contained in:
Miodec 2022-03-16 23:59:16 +01:00
parent 9f6322e572
commit 97437dd138

View file

@ -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);