mirror of
https://github.com/bitwarden/browser
synced 2025-12-19 01:33:33 +00:00
use hasKey helper
This commit is contained in:
@@ -24,8 +24,8 @@ export class LaunchGuardService implements CanActivate {
|
||||
return true;
|
||||
}
|
||||
|
||||
const key = await this.cryptoService.getKey();
|
||||
if (key == null) {
|
||||
const hasKey = await this.cryptoService.hasKey();
|
||||
if (!hasKey) {
|
||||
this.router.navigate(['lock']);
|
||||
} else {
|
||||
this.router.navigate(['tabs/current']);
|
||||
|
||||
Reference in New Issue
Block a user