Allow comma in title

This commit is contained in:
soraefir
2026-08-03 19:51:26 +02:00
parent 553e33d441
commit 191f221faa
@@ -241,7 +241,7 @@ class EditBillViewModel : ViewModel() {
} }
fun isFormValid(): Boolean { fun isFormValid(): Boolean {
return what.isNotEmpty() && !what.contains(",") && return what.isNotEmpty() &&
timestamp != 0L && timestamp != 0L &&
payerId != 0L && payerId != 0L &&
owersSelection.any { it.value } owersSelection.any { it.value }
@@ -255,7 +255,7 @@ class EditBillViewModel : ViewModel() {
errorInvalidForm: String errorInvalidForm: String
): String? { ): String? {
return when { return when {
what.isEmpty() || what.contains(",") -> errorWhat what.isEmpty() -> errorWhat
timestamp == 0L -> errorDate timestamp == 0L -> errorDate
payerId == 0L -> errorPayer payerId == 0L -> errorPayer
owersSelection.none { it.value } -> errorOwers owersSelection.none { it.value } -> errorOwers