1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-08 04:33:38 +00:00

usesKeyConnector always returns boolean

This commit is contained in:
Maciej Zieniuk
2025-03-25 09:07:36 +00:00
parent c2b103dc18
commit 3d088fcdc6

View File

@@ -78,8 +78,10 @@ export class KeyConnectorService implements KeyConnectorServiceAbstraction {
await this.stateProvider.getUser(userId, USES_KEY_CONNECTOR).update(() => usesKeyConnector);
}
getUsesKeyConnector(userId: UserId): Promise<boolean> {
return firstValueFrom(this.stateProvider.getUserState$(USES_KEY_CONNECTOR, userId));
async getUsesKeyConnector(userId: UserId): Promise<boolean> {
return (
(await firstValueFrom(this.stateProvider.getUserState$(USES_KEY_CONNECTOR, userId))) ?? false
);
}
async userNeedsMigration(userId: UserId, organizations: Organization[]) {