fixed error when only one booking was inserted

This commit is contained in:
2025-05-20 14:47:24 +02:00
parent f5e2e32545
commit d955cb02b8
3 changed files with 4 additions and 4 deletions

View File

@@ -66,7 +66,7 @@ templ dayComponent(workDay models.WorkDay) {
if (workDay.Absence != models.Absence{}) {
<p>{ workDay.Absence.GetStringType() }</p>
}
if len(workDay.Bookings) <= 1 && (workDay.Absence == models.Absence{}) {
if len(workDay.Bookings) < 1 && (workDay.Absence == models.Absence{}) {
<p class="text group-[.edit]:hidden">Keine Buchung gefunden. Bitte Arbeitsstunden oder Grund der Abwesenheit eingeben!</p>
@absenceComponent(workDay)
@newBookingComponent(workDay)