Skip to content

Commit

Permalink
Reduce GlobalStore accounts in addition to sessionStorage removal (#5849
Browse files Browse the repository at this point in the history
)

* Reduce GlobalStore accounts in addition to sessionStorage removal

* use better variable names

* pr reviews: apply corrections
  • Loading branch information
martgil authored Oct 10, 2024
1 parent 345c678 commit d70bf0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extension/js/common/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ export class Settings {
if (!acctEmails.includes(acctEmail)) {
throw new Error(`"${acctEmail}" is not a known account_email in "${JSON.stringify(acctEmails)}"`);
}
await GlobalStore.acctEmailsRemove(acctEmail);
const storageIndexesToRemove: AccountIndex[] = [];
const filter = AbstractStore.singleScopeRawIndex(acctEmail, '');
if (!filter) {
Expand Down Expand Up @@ -190,7 +191,6 @@ export class Settings {
}
}
await Settings.acctStorageReset(oldAcctEmail);
await GlobalStore.acctEmailsRemove(oldAcctEmail);
}

public static async renderPrvCompatFixUiAndWaitTilSubmittedByUser(
Expand Down

0 comments on commit d70bf0f

Please sign in to comment.