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 } } }