diff --git a/DuckDuckGo/SettingsRootView.swift b/DuckDuckGo/SettingsRootView.swift index 2c4cd10de4..d6b6c3aff5 100644 --- a/DuckDuckGo/SettingsRootView.swift +++ b/DuckDuckGo/SettingsRootView.swift @@ -66,7 +66,7 @@ struct SettingsRootView: View { viewModel.onAppear() } - .onAppear { + .onDisappear { viewModel.onDissapear() } diff --git a/DuckDuckGo/SettingsView.swift b/DuckDuckGo/SettingsView.swift index ab326856a9..3e7839e23a 100644 --- a/DuckDuckGo/SettingsView.swift +++ b/DuckDuckGo/SettingsView.swift @@ -71,7 +71,7 @@ struct SettingsView: View { viewModel.onAppear() } - .onAppear { + .onDisappear { viewModel.onDissapear() }