diff --git a/DuckDuckGo/SettingsDebugView.swift b/DuckDuckGo/SettingsDebugView.swift index 39615314c2..8baacecbf5 100644 --- a/DuckDuckGo/SettingsDebugView.swift +++ b/DuckDuckGo/SettingsDebugView.swift @@ -25,13 +25,15 @@ struct SettingsDebugView: View { @EnvironmentObject var viewModel: SettingsViewModel var body: some View { - Section(header: Text("Debug")) { - - SettingsCellView(label: "All debug options", - action: { viewModel.presentLegacyView(.debug) }, - disclosureIndicator: true, - isButton: true) - + if viewModel.state.debugModeEnabled { + Section(header: Text("Debug")) { + + SettingsCellView(label: "All debug options", + action: { viewModel.presentLegacyView(.debug) }, + disclosureIndicator: true, + isButton: true) + + } } }