From 177c56fce2104649056b697a79851e08e6f111f4 Mon Sep 17 00:00:00 2001 From: Simon McLoughlin Date: Thu, 1 Aug 2024 14:08:28 +0100 Subject: [PATCH] bug fix: upgrade path, don't hide faceId if user has already enabled it, even if flag is missing --- Kukai Mobile/Modules/Side Menu/SideMenuSecurityViewModel.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Kukai Mobile/Modules/Side Menu/SideMenuSecurityViewModel.swift b/Kukai Mobile/Modules/Side Menu/SideMenuSecurityViewModel.swift index 2fb762b0..72eea552 100644 --- a/Kukai Mobile/Modules/Side Menu/SideMenuSecurityViewModel.swift +++ b/Kukai Mobile/Modules/Side Menu/SideMenuSecurityViewModel.swift @@ -58,7 +58,7 @@ class SideMenuSecurityViewModel: ViewModel, UITableViewDiffableDataSourceHandler var snapshot = NSDiffableDataSourceSnapshot() var options: [[AnyHashable]] = [] - if CurrentDevice.biometricTypeAuthorized() != .unavailable && StorageService.wasBiometricsAccessibleDuringOnboarding() { + if CurrentDevice.biometricTypeAuthorized() != .unavailable && (StorageService.wasBiometricsAccessibleDuringOnboarding() || StorageService.isBiometricEnabled()) { let biometricType = CurrentDevice.biometricTypeSupported() let title = biometricType == .faceID ? "Face ID" : "Touch ID" let image = biometricType == .faceID ? UIImage(systemName: "faceid") : UIImage(systemName: "touchid")