fix: remove ‘add guests’ from the dropdown if it’s disabled in the booking questions (#19649)

* fix: remove ‘add guests’ from the dropdown if it’s disabled in the booking questions

* fix: remove dd guests' from the dropdown if it's
disabled in the booking questions
This commit is contained in:
Anik Dhabal Babu authored and GitHub committed 2025-03-03 05:06:51 +00:00
1 parent 22f1060ed6
commit 615ef93572
2 files changed
+13 -8

No files matched your search

@@ -259,14 +259,18 @@ function BookingListItem(booking: BookingItemProps) {
},
icon: "map-pin" as const,
},
{
id: "add_members",
label: t("additional_guests"),
onClick: () => {
setIsOpenAddGuestsDialog(true);
},
icon: "user-plus" as const,
},
...(booking.eventType?.disableGuests
? []
: [
{
id: "add_members",
label: t("additional_guests"),
onClick: () => {
setIsOpenAddGuestsDialog(true);
},
icon: "user-plus" as const,
},
]),
];
if (booking.eventType.schedulingType === SchedulingType.ROUND_ROBIN) {