Skip to content

Commit aa9c1c3

Browse files
Noted the important fixes
1 parent 60068a2 commit aa9c1c3

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

frontend/src/components/video/VideoCard.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ export function VideoCard({ video }: VideoCardProps) {
3535
{/* Thumbnail */}
3636
<div className="relative aspect-video bg-muted">
3737
{video.thumbnail && (
38+
// eslint-disable-next-line @next/next/no-img-element
3839
<img
3940
src={video.thumbnail.replace('/public', '')}
4041
alt={video.title}
@@ -54,16 +55,16 @@ export function VideoCard({ video }: VideoCardProps) {
5455
<CardContent className="p-4">
5556
<div className="flex gap-3">
5657
<Avatar className="w-10 h-10 flex-shrink-0">
57-
<AvatarImage src={video.owner.avatar} alt={video.owner.fullName} />
58-
<AvatarFallback>{video.owner.fullName[0]}</AvatarFallback>
58+
<AvatarImage src={video.owner?.avatar} alt={video.owner?.fullName} />
59+
<AvatarFallback>{video.owner?.fullName[0]}</AvatarFallback>
5960
</Avatar>
6061

6162
<div className="flex-1 min-w-0">
6263
<h3 className="font-semibold line-clamp-2 text-sm mb-1">
6364
{video.title}
6465
</h3>
6566
<p className="text-sm text-muted-foreground">
66-
{video.owner.fullName}
67+
{video.owner?.fullName}
6768
</p>
6869
<div className="flex items-center gap-2 text-xs text-muted-foreground mt-1">
6970
<span className="flex items-center gap-1">

0 commit comments

Comments
 (0)