On seats, hide attendees if option is selected (#6767)

* On seats, hide attendees if option is selected

* Remove unused line
This commit is contained in:
Joe Au-Yeung authored and GitHub committed 2023-01-27 12:10:49 -07:00
1 parent 0faf294367
commit 60f7528cbc
2 files changed
+5 -8

No files matched your search

@@ -620,6 +620,11 @@ async function handler(req: NextApiRequest & { userId?: number | undefined }) {
});
const newSeat = booking.attendees.length !== 0;
if (!evt.seatsShowAttendees) {
evt.attendees = invitee;
}
/**
* Remember objects are passed into functions as references
* so if you modify it in a inner function it will be modified in the outer function