diff --git a/ui-components/src/main/java/org/dhis2/ui/dialogs/bottomsheet/DeleteBottomSheetDialog.kt b/ui-components/src/main/java/org/dhis2/ui/dialogs/bottomsheet/DeleteBottomSheetDialog.kt index 5920408cfe..06e2cd2d87 100644 --- a/ui-components/src/main/java/org/dhis2/ui/dialogs/bottomsheet/DeleteBottomSheetDialog.kt +++ b/ui-components/src/main/java/org/dhis2/ui/dialogs/bottomsheet/DeleteBottomSheetDialog.kt @@ -81,9 +81,7 @@ DeleteBottomSheetDialog( }, text = mainButtonText, colorStyle = ColorStyle.ERROR, - onClick = { - onMainButtonClick - }, + onClick = onMainButtonClick, modifier = Modifier .fillMaxWidth(), )