diff --git a/DuckDuckGo/AIChatDebugView.swift b/DuckDuckGo/AIChatDebugView.swift index c81c40c5e0..a7e372d6c7 100644 --- a/DuckDuckGo/AIChatDebugView.swift +++ b/DuckDuckGo/AIChatDebugView.swift @@ -66,19 +66,18 @@ private struct AIChatDebugHostnameEntryView: View { .autocorrectionDisabled(true) .textInputAutocapitalization(.never) } - - Button(action: { + Button { viewModel.enteredHostname = policyHostname presentationMode.wrappedValue.dismiss() - }) { + } label: { Text("Confirm") } - Button(action: { + Button { viewModel.resetHostname() policyHostname = "" presentationMode.wrappedValue.dismiss() - }) { + } label: { Text("Reset") } }