Fix crash on empty input in unit converter

This commit is contained in:
Sad Ellie 2023-05-16 11:13:24 +03:00
parent c838d0f32d
commit 5932332fc8

View File

@ -301,7 +301,7 @@ internal fun TopScreenPart(
navigateToRightScreen(
unitFrom.unitId,
unitTo.unitId,
input
input?.ifEmpty { "0" }
)
},
label = unitTo?.displayName ?: R.string.loading_label,