Skip to content

Commit

Permalink
fix(result): pb crown sometimes being shown when it shouldnt have
Browse files Browse the repository at this point in the history
closes #4710
  • Loading branch information
Miodec committed Oct 9, 2023
1 parent 876b882 commit 2fabadd
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions frontend/src/ts/test/result.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down
1 change: 0 additions & 1 deletion frontend/src/ts/test/test-logic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2fabadd

Please sign in to comment.