Show guidance regardless of OTP method

This commit is contained in:
Davide 2024-11-29 19:55:22 +01:00
parent 1a25102ec3
commit 725168b652
No known key found for this signature in database
GPG Key ID: A48836171C759F5E

View File

@ -79,7 +79,8 @@ public struct OpenVPNCredentialsView: View {
}
public var body: some View {
Group {
debugChanges()
return Group {
if !isAuthenticating {
interactiveSection
}
@ -176,7 +177,7 @@ private extension OpenVPNCredentialsView {
if isAuthenticating {
return builder.otpMethod.localizedDescription(style: .approachDescription)
.nilIfEmpty
} else if builder.otpMethod == .none, let providerPurpose {
} else if let providerPurpose {
switch providerPurpose {
case .web:
return Strings.Modules.Openvpn.Credentials.Guidance.web