From 3fedc2552d9fa2c2a2127dcb16ddfb1481e7f992 Mon Sep 17 00:00:00 2001 From: tangowithfoxtrot <5676771+tangowithfoxtrot@users.noreply.github.com> Date: Thu, 13 Feb 2025 10:03:32 -0800 Subject: [PATCH] fix: flipped boolean check --- libs/common/src/auth/services/key-connector.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/common/src/auth/services/key-connector.service.ts b/libs/common/src/auth/services/key-connector.service.ts index 83f7197f4b3..2f2c66ed36a 100644 --- a/libs/common/src/auth/services/key-connector.service.ts +++ b/libs/common/src/auth/services/key-connector.service.ts @@ -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; }, }); }