@@ -265,10 +265,6 @@ export default function EventPreviewModal({
|
|||||||
(a) => a.cal_address !== event.organizer?.cal_address
|
(a) => a.cal_address !== event.organizer?.cal_address
|
||||||
) || [];
|
) || [];
|
||||||
|
|
||||||
const visibleAttendees = showAllAttendees
|
|
||||||
? attendees
|
|
||||||
: attendees.slice(0, attendeeDisplayLimit);
|
|
||||||
|
|
||||||
const currentUserAttendee = event.attendee?.find(
|
const currentUserAttendee = event.attendee?.find(
|
||||||
(person) => person.cal_address === user.email
|
(person) => person.cal_address === user.email
|
||||||
);
|
);
|
||||||
@@ -550,7 +546,7 @@ export default function EventPreviewModal({
|
|||||||
showAllAttendees,
|
showAllAttendees,
|
||||||
true
|
true
|
||||||
)}
|
)}
|
||||||
{visibleAttendees.map((a, idx) =>
|
{attendees.map((a, idx) =>
|
||||||
renderAttendeeBadge(
|
renderAttendeeBadge(
|
||||||
a,
|
a,
|
||||||
idx.toString(),
|
idx.toString(),
|
||||||
@@ -583,7 +579,7 @@ export default function EventPreviewModal({
|
|||||||
organizer &&
|
organizer &&
|
||||||
renderAttendeeBadge(organizer, "org", t, showAllAttendees, true)}
|
renderAttendeeBadge(organizer, "org", t, showAllAttendees, true)}
|
||||||
{showAllAttendees &&
|
{showAllAttendees &&
|
||||||
visibleAttendees.map((a, idx) =>
|
attendees.map((a, idx) =>
|
||||||
renderAttendeeBadge(a, idx.toString(), t, showAllAttendees)
|
renderAttendeeBadge(a, idx.toString(), t, showAllAttendees)
|
||||||
)}
|
)}
|
||||||
{/* Location */}
|
{/* Location */}
|
||||||
|
|||||||
Reference in New Issue
Block a user