From 6b42597a2c44285d98a0da1a405e2f42c701d60c Mon Sep 17 00:00:00 2001 From: Camille Moussu <66134347+Eriikah@users.noreply.github.com> Date: Tue, 10 Feb 2026 17:32:54 +0100 Subject: [PATCH] [#520] fix event order flicker (#530) --- src/components/Calendar/utils/calendarUtils.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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) {