Skip to content

Commit

Permalink
IOS-1943 Changed the order of the cases
Browse files Browse the repository at this point in the history
  • Loading branch information
megakoko committed Nov 8, 2022
1 parent be470f1 commit 266296b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions TangemSdk/TangemSdk/Common/Core/CardSession.swift
Original file line number Diff line number Diff line change
Expand Up @@ -373,12 +373,12 @@ public class CardSession {
requestBiometricsWithFallback {
requestAccessCodeAction()
}
case .always:
requestAccessCodeAction()
case .defaultWithBiometrics:
requestBiometricsWithFallback {
runnable.prepare(self, completion: completion)
}
case .always:
requestAccessCodeAction()
case .default:
runnable.prepare(self, completion: completion)
}
Expand Down
4 changes: 2 additions & 2 deletions TangemSdk/TangemSdk/Common/Core/Config.swift
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,10 @@ public enum CardIdDisplayFormat {
public enum AccessCodeRequestPolicy: String, CaseIterable {
/// User code will be requested before card scan. Biometrics will be used if enabled and there are any saved codes.
case alwaysWithBiometrics
/// User code will be requested only if set on the card. Biometrics will be used if enabled and there are any saved codes.
case defaultWithBiometrics
/// User code will be requested before card scan.
case always
/// User code will be requested only if set on the card. Biometrics will be used if enabled and there are any saved codes.
case defaultWithBiometrics
/// User code will be requested only if set on the card. Need scan the card twice.
case `default`
}

0 comments on commit 266296b

Please sign in to comment.