From 3ab710389b0538579dddea53cc27a3d814023a76 Mon Sep 17 00:00:00 2001 From: Thomas Rittson <31796059+eliykat@users.noreply.github.com> Date: Thu, 20 May 2021 06:47:45 +1000 Subject: [PATCH] Minor tweak so old server doesn't break autofill (#385) --- src/services/cipher.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/cipher.service.ts b/src/services/cipher.service.ts index eaf77a56e2..eceb8556b8 100644 --- a/src/services/cipher.service.ts +++ b/src/services/cipher.service.ts @@ -1106,7 +1106,7 @@ export class CipherService implements CipherServiceAbstraction { if (autofillOnPageLoad) { const autofillOnPageLoadDefault = await this.storageService.get(ConstantsService.autoFillOnPageLoadDefaultKey); ciphers = ciphers.filter(cipher => cipher.login.autofillOnPageLoad || - (cipher.login.autofillOnPageLoad === null && autofillOnPageLoadDefault)); + (cipher.login.autofillOnPageLoad == null && autofillOnPageLoadDefault)); if (ciphers.length === 0) { return null; }