mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-04 21:09:18 +08:00
deleting challenge field if nullish
This commit is contained in:
parent
b426264f98
commit
5845ef9923
1 changed files with 1 additions and 0 deletions
|
@ -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", {
|
||||
|
|
Loading…
Reference in a new issue