From ffd0de57d5086eafce5a1f0dff921e43a8c4941b Mon Sep 17 00:00:00 2001 From: Levitating Pineapple Date: Wed, 16 Oct 2024 12:33:24 +0300 Subject: [PATCH] minor --- apps/ios/Shared/Views/Helpers/LocalAuthenticationUtils.swift | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/apps/ios/Shared/Views/Helpers/LocalAuthenticationUtils.swift b/apps/ios/Shared/Views/Helpers/LocalAuthenticationUtils.swift index 9950d62a32..f7f71d2e83 100644 --- a/apps/ios/Shared/Views/Helpers/LocalAuthenticationUtils.swift +++ b/apps/ios/Shared/Views/Helpers/LocalAuthenticationUtils.swift @@ -67,13 +67,12 @@ func systemAuthenticate(_ reason: String, _ completed: @escaping (LAResult) -> V laContext.evaluatePolicy(.deviceOwnerAuthentication, localizedReason: reason) { success, authError in logger.debug("DEBUGGING: systemAuthenticate evaluatePolicy callback") DispatchQueue.main.async { + AppSheetState.shared.biometricAuth = false if success { completed(LAResult.success) - AppSheetState.shared.biometricAuth = false } else { logger.error("DEBUGGING: systemAuthenticate authentication error: \(authError.debugDescription)") completed(LAResult.failed(authError: authError?.localizedDescription)) - AppSheetState.shared.biometricAuth = false } } }