Skip to content

Commit 02799f2

Browse files
authored
Fix: Crash when clearing the start pressure field in cylinder picker (#188)
1 parent abcb2aa commit 02799f2

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

composeApp/src/commonMain/kotlin/org/neotech/app/abysner/presentation/screens/planner/cylinders/CylinderPickerBottomSheet.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,9 @@ private fun CylinderPickerBottomSheetContent(
280280
visualTransformation = SuffixVisualTransformation(" ${unitSystem.pressureUnitLabel}"),
281281
errorMessage = errorMessagePressure,
282282
onNumberChanged = {
283-
startPressure = it
283+
if (it != null) {
284+
startPressure = it
285+
}
284286
},
285287
supportingText = null
286288
)

0 commit comments

Comments
 (0)