diff --git a/packages/lib/OgImages.tsx b/packages/lib/OgImages.tsx index 435b52e23f..6c4e45dca1 100644 --- a/packages/lib/OgImages.tsx +++ b/packages/lib/OgImages.tsx @@ -1,4 +1,3 @@ -import Image from "next/image"; import React from "react"; import { CAL_URL, LOGO, WEBAPP_URL } from "./constants"; @@ -132,17 +131,6 @@ export const Meeting = ({ title, users = [], profile }: MeetingImageProps) => { return null; }) .filter(Boolean) as string[]; - const avatarComponents = avatars - .slice(0, 3) - .map((avatar) => ( - Profile picture - )); // In case there is NO other attendee than the single meeting profile without an image, we add // that name back in here, since the event probably is a round robin event. @@ -159,7 +147,15 @@ export const Meeting = ({ title, users = [], profile }: MeetingImageProps) => { )}
- {avatarComponents} + {avatars.slice(0, 3).map((avatar) => ( + Profile picture + ))} {avatars.length > 3 && (
+{avatars.length - 3}