fix: Only show ValueOneSummary if value is available

Signed-off-by: Myzel394 <50424412+Myzel394@users.noreply.github.com>
This commit is contained in:
Myzel394 2024-07-16 20:41:37 +02:00
parent ad107b0143
commit a07aa51163
No known key found for this signature in database
GPG Key ID: DEC4AAB876F73185

View File

@ -493,6 +493,7 @@ private fun Default(
),
)
if (uiState.result is ConverterResult.Default && uiState.unitTo.factor >= BigDecimal.ZERO) {
ValueOneSummary(
modifier = with(density) {
Modifier
@ -502,6 +503,7 @@ private fun Default(
},
uiState = uiState,
)
}
Spacer(modifier = Modifier.height(boxWithConstraintsScope.maxHeight * 0.03f))