Skip to content

Commit 08fb4e5

Browse files
committed
worked on review comment
1 parent b864f8c commit 08fb4e5

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

Package.resolved

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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 func getCurrentMFAType() -> AuthenticatorFactorType {
37+
private var getCurrentMFAType: 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 getCurrentMFAType {
5858
case .sms, .none:
5959
return "authenticator.confirmSignInWithCode.field.phone.code.label".localized()
6060
case .email:
@@ -65,7 +65,7 @@ struct ConfirmSignInWithCodeView<Header: View,
6565
}
6666

6767
private var textFieldPlaceholder: String {
68-
switch getCurrentMFAType() {
68+
switch getCurrentMFAType {
6969
case .sms, .none, .email:
7070
return "authenticator.field.code.placeholder".localized()
7171
case .totp:
@@ -74,7 +74,7 @@ struct ConfirmSignInWithCodeView<Header: View,
7474
}
7575

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

0 commit comments

Comments
 (0)