1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-13 06:43:35 +00:00

[bug] Set envUrls after assigning defaults during scaffolding (#627)

This commit is contained in:
Addison Beck
2022-01-21 13:35:14 -05:00
committed by GitHub
parent 9b0e5ae456
commit 074f1ee7b7

View File

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