1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-23 11:56:00 +01:00

Bug fix: made lock default conditional check (#106)

This commit is contained in:
Vincent Salucci 2020-05-28 13:09:55 -05:00 committed by GitHub
parent 1bbd808105
commit 212a2e3745
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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