From e6856a52b432a10c1fc3dac89db061f81b7a9224 Mon Sep 17 00:00:00 2001 From: Vincent Salucci <26154748+vincentsalucci@users.noreply.github.com> Date: Thu, 28 May 2020 13:30:11 -0500 Subject: [PATCH] Initial commit: made lock state default (#1261) --- src/background/idle.background.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/background/idle.background.ts b/src/background/idle.background.ts index d65c2d1856..df430ad7b6 100644 --- a/src/background/idle.background.ts +++ b/src/background/idle.background.ts @@ -43,10 +43,10 @@ export default class IdleBackground { const timeout = await this.storageService.get(ConstantsService.vaultTimeoutKey); if (timeout === -2) { // On System Lock vault timeout option const action = await this.storageService.get(ConstantsService.vaultTimeoutActionKey); - if (action === 'lock') { - await this.vaultTimeoutService.lock(true); - } else { + if (action === 'logOut') { await this.vaultTimeoutService.logOut(); + } else { + await this.vaultTimeoutService.lock(true); } } }