diff --git a/components/BlogPostCard.tsx b/components/BlogPostCard.tsx index 0981ee8..b5cd0f7 100644 --- a/components/BlogPostCard.tsx +++ b/components/BlogPostCard.tsx @@ -47,6 +47,7 @@ export default function BlogPostCard({ post, visible }: Props) { } function coverImageComponent() { + if (!post.images || post.images.length === 0) return null; const image = post.images![0]; return (