feat: implement SNApplication.hasProtectionSources

This commit is contained in:
Baptiste Grob
2021-02-18 09:48:39 +01:00
parent 734505c133
commit 1852b5e045
3 changed files with 6 additions and 6 deletions

View File

@@ -190,7 +190,7 @@ class AccountMenuCtrl extends PureViewCtrl<unknown, AccountMenuState> {
}
hasProtections() {
return this.application.hasAccount() || this.application.hasPasscode();
return this.application.hasProtectionSources();
}
private getProtectionsDisabledUntil(): string | null {