1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-10-06 05:28:51 +02:00

[bug] Default the state version check function to 1 (#657)

This commit is contained in:
Addison Beck 2022-02-07 11:08:07 -05:00 committed by GitHub
parent 7afb748791
commit 0760b53296
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -461,6 +461,6 @@ export class StateMigrationService<
}
protected async getCurrentStateVersion(): Promise<StateVersion> {
return (await this.getGlobals())?.stateVersion;
return (await this.getGlobals())?.stateVersion ?? StateVersion.One;
}
}