1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-10 13:40:06 +00:00

fix: flipped boolean check

This commit is contained in:
tangowithfoxtrot
2025-02-13 10:03:32 -08:00
parent 2b540f4b01
commit 3fedc2552d

View File

@@ -78,7 +78,7 @@ export class KeyConnectorService implements KeyConnectorServiceAbstraction {
async setUsesKeyConnector(usesKeyConnector: boolean, userId: UserId) {
await this.stateProvider.getUser(userId, USES_KEY_CONNECTOR).update(() => usesKeyConnector, {
shouldUpdate: (previous) => {
return previous === usesKeyConnector;
return previous !== usesKeyConnector;
},
});
}