Skip to content

Commit

Permalink
fix: dont display tag image if url not present
Browse files Browse the repository at this point in the history
  • Loading branch information
zacjones93 committed Dec 4, 2024
1 parent d6f37ee commit c7c2b26
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions src/pages/[post].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -592,14 +592,16 @@ const TagList = ({
}}
className="inline-flex items-center hover:underline"
>
<Image
src={tag.image_url}
alt={tag.name}
width={18}
height={18}
className="flex-shrink-0"
quality={100}
/>
{tag.image_url && (
<Image
src={tag.image_url}
alt={tag.name}
width={18}
height={18}
className="flex-shrink-0"
quality={100}
/>
)}
<span className="ml-1">{tag.label}</span>
</Link>
{tag.version && (
Expand Down

0 comments on commit c7c2b26

Please sign in to comment.