diff --git a/client/src/components/CalenderComponent.vue b/client/src/components/CalenderComponent.vue index 5df9eaa6..51ab27d2 100644 --- a/client/src/components/CalenderComponent.vue +++ b/client/src/components/CalenderComponent.vue @@ -230,7 +230,7 @@ function onClick(arg: any) { const clickedEventTitle = arg.event.title as string // We use a normalized event ID to avoid duplication. It's created by concatenating 'holiday', 'birthday', 'event', 'meeting', and 'vacation' with the event ID. - if (clickedEventTitle === CalendarEventSelection.PublicHoliday) { + if (clickedEventTitle.includes(CalendarEventSelection.PublicHoliday)) { selectedEvent.value = holidays.value.filter( (holiday) => holiday.id === Number(arg.event.id.replace('holiday', '')) )[0] diff --git a/client/src/utils/helpers.ts b/client/src/utils/helpers.ts index 7aa6f3d7..5b0de00c 100644 --- a/client/src/utils/helpers.ts +++ b/client/src/utils/helpers.ts @@ -97,10 +97,9 @@ export function normalizeVacation(v: Api.Vacation) { export function normalizeHoliday(h: Api.Holiday) { const dates = handelDates(h.holiday_date, h.holiday_date) - return { type: h.type, - title: `Public Holiday`, + title: `Public Holiday ${h.location.country}`, color: '#5effb4', start: dates.start, end: dates.end,