diff --git a/app/src/main/java/com/zaneschepke/wireguardautotunnel/ui/screens/main/MainScreen.kt b/app/src/main/java/com/zaneschepke/wireguardautotunnel/ui/screens/main/MainScreen.kt index 2177f5c5..3c2628cc 100644 --- a/app/src/main/java/com/zaneschepke/wireguardautotunnel/ui/screens/main/MainScreen.kt +++ b/app/src/main/java/com/zaneschepke/wireguardautotunnel/ui/screens/main/MainScreen.kt @@ -116,7 +116,7 @@ fun MainScreen(viewModel: MainViewModel = hiltViewModel(), uiState: AppUiState) InfoDialog( onDismiss = { showDeleteTunnelAlertDialog = false }, onAttest = { - selectedTunnel?.let { viewModel::onDelete } + selectedTunnel?.let { viewModel.onDelete(it) } showDeleteTunnelAlertDialog = false selectedTunnel = null },