From 7dfb19c419126587d41e504242ee33c0679e44e9 Mon Sep 17 00:00:00 2001 From: Artem Bulgakov Date: Sun, 14 Jul 2024 23:53:45 +0300 Subject: [PATCH] fix: autologin enabled condition --- src/features/autologin/background.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/features/autologin/background.ts b/src/features/autologin/background.ts index cc2fa9f..bb681ca 100644 --- a/src/features/autologin/background.ts +++ b/src/features/autologin/background.ts @@ -4,7 +4,7 @@ import { getStored, setStored } from '@/shared/storage' export async function autoLogIn() { const enabled = await getStored('autologinEnabled') - if (!enabled) { + if (enabled === false) { console.log('Auto login is disabled, skipping') return false }