@@ -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<string, string> | 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) {
|
||||
|
||||
Reference in New Issue
Block a user