diff --git a/app/src/main/java/de/dbauer/expensetracker/ui/EditRecurringExpense.kt b/app/src/main/java/de/dbauer/expensetracker/ui/EditRecurringExpense.kt index 68a2aaa..f68a550 100644 --- a/app/src/main/java/de/dbauer/expensetracker/ui/EditRecurringExpense.kt +++ b/app/src/main/java/de/dbauer/expensetracker/ui/EditRecurringExpense.kt @@ -47,6 +47,7 @@ import androidx.compose.ui.unit.dp import de.dbauer.expensetracker.R import de.dbauer.expensetracker.data.RecurringExpenseData import de.dbauer.expensetracker.toFloatIgnoreSeparator +import de.dbauer.expensetracker.toValueString import de.dbauer.expensetracker.ui.theme.ExpenseTrackerTheme @OptIn(ExperimentalMaterial3Api::class) @@ -103,7 +104,7 @@ private fun EditRecurringExpenseInternal( mutableStateOf(TextFieldValue(currentData?.description ?: "")) } var priceState by rememberSaveable(stateSaver = TextFieldValue.Saver) { - mutableStateOf(TextFieldValue(currentData?.priceValue?.toString() ?: "")) + mutableStateOf(TextFieldValue(currentData?.priceValue?.toValueString() ?: "")) } val priceInputError = rememberSaveable {