mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-02 08:40:08 +01:00
Bug fix: made lock default conditional check (#106)
This commit is contained in:
parent
6e52c2846d
commit
17298cf188
@ -81,7 +81,7 @@ export class VaultTimeoutService implements VaultTimeoutServiceAbstraction {
|
||||
if (diffSeconds >= vaultTimeoutSeconds) {
|
||||
// Pivot based on the saved vault timeout action
|
||||
const timeoutAction = await this.storageService.get<string>(ConstantsService.vaultTimeoutActionKey);
|
||||
timeoutAction === 'lock' ? await this.lock(true) : await this.logOut();
|
||||
timeoutAction === 'logOut' ? await this.logOut() : await this.lock(true);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user