diff --git a/composeApp/src/commonMain/kotlin/org/neotech/app/abysner/presentation/screens/planner/cylinders/CylinderPickerBottomSheet.kt b/composeApp/src/commonMain/kotlin/org/neotech/app/abysner/presentation/screens/planner/cylinders/CylinderPickerBottomSheet.kt index af1a97e..855bef7 100644 --- a/composeApp/src/commonMain/kotlin/org/neotech/app/abysner/presentation/screens/planner/cylinders/CylinderPickerBottomSheet.kt +++ b/composeApp/src/commonMain/kotlin/org/neotech/app/abysner/presentation/screens/planner/cylinders/CylinderPickerBottomSheet.kt @@ -280,7 +280,9 @@ private fun CylinderPickerBottomSheetContent( visualTransformation = SuffixVisualTransformation(" ${unitSystem.pressureUnitLabel}"), errorMessage = errorMessagePressure, onNumberChanged = { - startPressure = it + if (it != null) { + startPressure = it + } }, supportingText = null )