Skip to content

Commit b992c8f

Browse files
committed
Merge branch 'feat/email-mfa' of github.com:aws-amplify/amplify-ui-swift-authenticator into feat/email-mfa
2 parents a6e90ed + c3bfde4 commit b992c8f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Sources/Authenticator/Views/Internal/ConfirmSignInWithCodeView.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ struct ConfirmSignInWithCodeView<Header: View,
3434
))
3535
}
3636

37-
private var getCurrentMFAType: AuthenticatorFactorType {
37+
private var currentMFAType: AuthenticatorFactorType {
3838
switch authenticatorState.step {
3939
case .confirmSignInWithMFACode(let deliveryDetails),
4040
.confirmSignInWithOTP(let deliveryDetails):
@@ -54,7 +54,7 @@ struct ConfirmSignInWithCodeView<Header: View,
5454
}
5555

5656
private var textFieldLabel: String {
57-
switch getCurrentMFAType {
57+
switch currentMFAType {
5858
case .sms, .none, .email:
5959
return "authenticator.field.code.label".localized()
6060
case .totp:
@@ -63,7 +63,7 @@ struct ConfirmSignInWithCodeView<Header: View,
6363
}
6464

6565
private var textFieldPlaceholder: String {
66-
switch getCurrentMFAType {
66+
switch currentMFAType {
6767
case .sms, .none, .email:
6868
return "authenticator.field.code.placeholder".localized()
6969
case .totp:
@@ -72,7 +72,7 @@ struct ConfirmSignInWithCodeView<Header: View,
7272
}
7373

7474
private var submitButtonTitle: String {
75-
switch getCurrentMFAType {
75+
switch currentMFAType {
7676
case .sms, .none, .email:
7777
return "authenticator.confirmSignInWithCode.button.submit".localized()
7878
case .totp:

0 commit comments

Comments
 (0)