Skip to content

Commit

Permalink
Merge branch 'feat/email-mfa' of github.com:aws-amplify/amplify-ui-sw…
Browse files Browse the repository at this point in the history
…ift-authenticator into feat/email-mfa
  • Loading branch information
harsh62 committed Oct 31, 2024
2 parents a6e90ed + c3bfde4 commit b992c8f
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ struct ConfirmSignInWithCodeView<Header: View,
))
}

private var getCurrentMFAType: AuthenticatorFactorType {
private var currentMFAType: AuthenticatorFactorType {
switch authenticatorState.step {
case .confirmSignInWithMFACode(let deliveryDetails),
.confirmSignInWithOTP(let deliveryDetails):
Expand All @@ -54,7 +54,7 @@ struct ConfirmSignInWithCodeView<Header: View,
}

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

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

private var submitButtonTitle: String {
switch getCurrentMFAType {
switch currentMFAType {
case .sms, .none, .email:
return "authenticator.confirmSignInWithCode.button.submit".localized()
case .totp:
Expand Down

0 comments on commit b992c8f

Please sign in to comment.