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); } } }