fix(result): pb crown sometimes being shown when it shouldnt have

closes #4710
This commit is contained in:
Miodec 2023-10-09 17:39:19 +01:00
parent 876b882834
commit 2fabaddb1d
2 changed files with 1 additions and 1 deletions

View file

@ -710,6 +710,7 @@ export async function update(
).scales;
resultAnnotation = [];
result = Object.assign({}, res);
hideCrown();
$("#resultWordsHistory .words").empty();
$("#result #resultWordsHistory").addClass("hidden");
$("#retrySavingResultButton").addClass("hidden");

View file

@ -1224,7 +1224,6 @@ async function saveResult(
const response = await Ape.results.save(completedEvent);
AccountButton.loading(false);
Result.hideCrown();
if (response.status !== 200) {
//only allow retry if status is not in this list