mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2026-01-05 23:15:08 +08:00
fix(result): pb crown sometimes being shown when it shouldnt have
closes #4710
This commit is contained in:
parent
876b882834
commit
2fabaddb1d
2 changed files with 1 additions and 1 deletions
|
|
@ -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");
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue