Skip to content

Commit

Permalink
undefinedはメンバーを持たない
Browse files Browse the repository at this point in the history
  • Loading branch information
akku1139 authored Feb 16, 2024
1 parent cbfe146 commit 16e38d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/ArticleCard.astro
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const { title, link, thumbnail, poster_name, poster_icon_url, tag }: Props = Ast
<div class="p-4">
<div class="aspect-oblong sms:aspect-square sm:aspect-oblong rounded-t-xl bg-blue-200 relative p-0 flex items-center justify-center">
<slot />
{(tag.text !== undefined) &&
{(tag !== undefined) &&
<div class={"text-xs text-center absolute left-4 top-3 py-1 px-2 font-bold rounded-full text-white "+tag.bg}>{tag}</div>
}
</div>
Expand Down

0 comments on commit 16e38d9

Please sign in to comment.