copying with json (for some reason without this some properties are lost ????)

This commit is contained in:
Miodec 2023-01-04 15:47:44 +01:00
parent 120f51bbc1
commit 3de8472fde

View file

@ -1638,7 +1638,7 @@ export async function finish(difficultyFailed = false): Promise<void> {
$("#result .stats .dailyLeaderboard").addClass("hidden");
TestStats.setLastResult(completedEvent);
TestStats.setLastResult(JSON.parse(JSON.stringify(completedEvent)));
await Result.update(
completedEvent,