deleting challenge field if nullish

This commit is contained in:
Miodec 2022-01-03 18:11:09 +01:00
parent b426264f98
commit 5845ef9923

View file

@ -1525,6 +1525,7 @@ export async function finish(difficultyFailed = false) {
AccountButton.loading(true);
completedEvent.challenge = ChallengeContoller.verify(completedEvent);
if (!completedEvent.challenge) delete completedEvent.challenge;
completedEvent.hash = objecthash(completedEvent);
axiosInstance
.post("/results/add", {