mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-11-09 13:44:29 +08:00
fix: remove pending crown from results that wont be sent to the server
This commit is contained in:
parent
d2d1f83a36
commit
5306d6fe2c
1 changed files with 3 additions and 3 deletions
|
|
@ -372,8 +372,8 @@ export function updateCrownType(type: PbCrown.CrownType): void {
|
|||
PbCrown.update(type);
|
||||
}
|
||||
|
||||
export async function updateCrown(): Promise<void> {
|
||||
if (Config.mode === "quote") {
|
||||
export async function updateCrown(dontSave: boolean): Promise<void> {
|
||||
if (Config.mode === "quote" || dontSave) {
|
||||
hideCrown();
|
||||
return;
|
||||
}
|
||||
|
|
@ -857,7 +857,7 @@ export async function update(
|
|||
updateTestType(randomQuote);
|
||||
updateQuoteSource(randomQuote);
|
||||
updateQuoteFavorite(randomQuote);
|
||||
await updateCrown();
|
||||
await updateCrown(dontSave);
|
||||
await updateGraph();
|
||||
await updateGraphPBLine();
|
||||
await updateTags(dontSave);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue