Skip to content

Commit fff1008

Browse files
author
Camille Moussu
committed
[#520] fix event order flicker
1 parent 1720965 commit fff1008

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/components/Calendar/utils/calendarUtils.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,14 +81,13 @@ export const eventToFullCalendarFormat = (
8181
const isOrganiser = e.organizer
8282
? e.organizer.cal_address?.toLowerCase() === userAddress?.toLowerCase()
8383
: true; // if there are no organizer in the event we assume it was organized by the owner
84-
const isPersonnalEvent =
85-
extractEventBaseUuid(e.calId) === userId && isOrganiser;
84+
const isPersonnalEvent = extractEventBaseUuid(e.calId) === userId;
8685
const convertedEvent: any = {
8786
...e,
8887
title: formatEventChipTitle(e, t),
8988
colors: e.color,
90-
editable: isPersonnalEvent,
91-
priority: isPersonnalEvent && !pending ? 1 : 0,
89+
editable: isPersonnalEvent && isOrganiser && !pending,
90+
priority: isPersonnalEvent ? 1 : 0,
9291
};
9392

9493
if (!isAllDay && e.start && eventTimezone) {

0 commit comments

Comments
 (0)