Skip to content

Commit

Permalink
fix calendar description text
Browse files Browse the repository at this point in the history
  • Loading branch information
lucia-gomez committed Sep 26, 2024
1 parent b4ada6b commit 8f8bedd
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions booking-app/components/src/server/calendars.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,17 +69,19 @@ const bookingContentsToDescription = (bookingContents: BookingFormDetails) => {
listItem("Expected Attendance", bookingContents.expectedAttendance),
bookingContents.roomSetup === "yes" &&
"**" + listItem("Room Setup", bookingContents.setupDetails) + "**",
listItem("Title", bookingContents.title),
bookingContents.mediaServices &&
bookingContents.mediaServices.length > 0 &&
listItem("Media Services", bookingContents.mediaServices),
bookingContents.mediaServicesDetails.length > 0 &&
listItem("Media Services Details", bookingContents.mediaServicesDetails),
(bookingContents.catering === "yes" ||
bookingContents.cateringService.length > 0) &&
listItem("Catering", bookingContents.cateringService),
bookingContents.hireSecurity === "yes" &&
listItem("Hire Security", bookingContents.hireSecurity),
bookingContents.mediaServices && bookingContents.mediaServices.length > 0
? listItem("Media Services", bookingContents.mediaServices)
: "",
bookingContents.mediaServicesDetails.length > 0
? listItem("Media Services Details", bookingContents.mediaServicesDetails)
: "",
bookingContents.catering === "yes" ||
bookingContents.cateringService.length > 0
? listItem("Catering", bookingContents.cateringService)
: "",
bookingContents.hireSecurity === "yes"
? listItem("Hire Security", bookingContents.hireSecurity)
: "",
"</ul><h3>Cancellation Policy</h3>",
];
//@ts-ignore
Expand Down

0 comments on commit 8f8bedd

Please sign in to comment.