fix: placeholder added

This commit is contained in:
rngsurrounded
2025-03-02 21:14:50 +09:00
parent 4add42f47e
commit f64419d2f0
@@ -20,13 +20,11 @@ export function CompetitionCard({
className={cn("aspect-square h-full w-auto overflow-hidden", className)} className={cn("aspect-square h-full w-auto overflow-hidden", className)}
> >
<div className="relative h-full overflow-hidden"> <div className="relative h-full overflow-hidden">
{competition.image_url && ( <img
<img src={competition.image_url ? competition.image_url : '/DANO.png'}
src={competition.image_url ? competition.image_url : '/DANO.png'} alt={competition.title}
alt={competition.title} className="h-full w-full object-cover object-center"
className="h-full w-full object-cover object-center" />
/>
)}
</div> </div>
<CardContent> <CardContent>