diff --git a/src/components/Calendar/utils/calendarUtils.ts b/src/components/Calendar/utils/calendarUtils.ts index dfe0912..9ba8f36 100644 --- a/src/components/Calendar/utils/calendarUtils.ts +++ b/src/components/Calendar/utils/calendarUtils.ts @@ -85,8 +85,7 @@ export const eventToFullCalendarFormat = ( const isOrganiser = e.organizer ? e.organizer.cal_address?.toLowerCase() === userAddress?.toLowerCase() : true; // if there are no organizer in the event we assume it was organized by the owner - const isPersonnalEvent = - extractEventBaseUuid(e.calId) === userId && isOrganiser; + const isPersonnalEvent = extractEventBaseUuid(e.calId) === userId; const convertedEvent: CalendarEvent & { colors: Record | undefined; editable: boolean; @@ -95,8 +94,8 @@ export const eventToFullCalendarFormat = ( ...e, title: formatEventChipTitle(e, t), colors: e.color, - editable: isPersonnalEvent, - priority: isPersonnalEvent && !pending ? 1 : 0, + editable: isPersonnalEvent && isOrganiser && !pending, + priority: isPersonnalEvent ? 1 : 0, }; if (!isAllDay && e.start && eventTimezone) {