diff --git a/src/app/util/pretix.go b/src/app/util/pretix.go index 956ee73..c2cbfa6 100644 --- a/src/app/util/pretix.go +++ b/src/app/util/pretix.go @@ -241,7 +241,7 @@ func GetAttendiesFromPretixJsonWithSeperateSubProducts(pretixEvent *entities.Pre if event.ItemIdBar == nil { attendie.AttendsBar = false } else { - indexBar := slices.IndexFunc(order.Positions, func(p entities.Pretix_Position) bool { return p.Item == *event.ItemIdRestaurant }) + indexBar := slices.IndexFunc(order.Positions, func(p entities.Pretix_Position) bool { return p.Item == *event.ItemIdBar }) if indexBar != -1 { attendie.AttendsBar = true } else {