(fix) Umbau zu SCS

This commit is contained in:
stefan
2025-07-19 11:37:44 +02:00
parent e76db7e924
commit 0219af9cfc
2 changed files with 14 additions and 8 deletions
@@ -107,10 +107,16 @@ class CreatePersonViewModel(
val parts = geburtsdatum.split("-")
if (parts.size == 3) {
LocalDate(parts[0].toInt(), parts[1].toInt(), parts[2].toInt())
} else null
} else {
errorMessage = "Ungültiges Datumsformat. Verwenden Sie YYYY-MM-DD"
isLoading = false
isSuccess = false
return@launch
}
} catch (e: Exception) {
errorMessage = "Ungültiges Datumsformat. Verwenden Sie YYYY-MM-DD"
isLoading = false
isSuccess = false
return@launch
}
} else null