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

[bug] Add several state value defaults (#593)

* [bug] Add several state value defaults

* [refactor] Implement StateVersion as an enum

* [refactor] Implement StateVersion enum over magic number
This commit is contained in:
Addison Beck
2021-12-31 09:14:43 -05:00
committed by GitHub
parent d68c1dafaf
commit e4cd0af2f9
5 changed files with 20 additions and 15 deletions

View File

@@ -74,7 +74,6 @@ export class StateService<TAccount extends Account = Account>
);
this.state = diskState;
await this.pruneInMemoryAccounts();
await this.saveStateToStorage(this.state, await this.defaultOnDiskMemoryOptions());
await this.pushAccounts();
}
}