Skip to content

Commit d70bf0f

Browse files
authored
Reduce GlobalStore accounts in addition to sessionStorage removal (#5849)
* Reduce GlobalStore accounts in addition to sessionStorage removal * use better variable names * pr reviews: apply corrections
1 parent 345c678 commit d70bf0f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

extension/js/common/settings.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ export class Settings {
8888
if (!acctEmails.includes(acctEmail)) {
8989
throw new Error(`"${acctEmail}" is not a known account_email in "${JSON.stringify(acctEmails)}"`);
9090
}
91+
await GlobalStore.acctEmailsRemove(acctEmail);
9192
const storageIndexesToRemove: AccountIndex[] = [];
9293
const filter = AbstractStore.singleScopeRawIndex(acctEmail, '');
9394
if (!filter) {
@@ -190,7 +191,6 @@ export class Settings {
190191
}
191192
}
192193
await Settings.acctStorageReset(oldAcctEmail);
193-
await GlobalStore.acctEmailsRemove(oldAcctEmail);
194194
}
195195

196196
public static async renderPrvCompatFixUiAndWaitTilSubmittedByUser(

0 commit comments

Comments
 (0)