File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
src/components/Calendar/utils Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff 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 ) {
You can’t perform that action at this time.
0 commit comments