1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-16 16:23:44 +00:00

[bug] Address existing data & defaults when migrating from an unauthenticated state (#626)

This commit is contained in:
Addison Beck
2022-01-21 12:41:15 -05:00
committed by GitHub
parent 69fe7b8339
commit 9b0e5ae456
2 changed files with 7 additions and 0 deletions

View File

@@ -2219,6 +2219,7 @@ export class StateService<TAccount extends Account = Account>
await this.storageService.remove(keys.tempAccountSettings);
}
account.settings.environmentUrls = environmentUrls;
Object.assign(account.settings, this.createAccount().settings);
await this.storageService.save(
account.profile.userId,
account,