Skip to content

Commit

Permalink
Merge pull request #147 from /issues/145
Browse files Browse the repository at this point in the history
undefinedであれば非表示
  • Loading branch information
nasubi916 authored Sep 6, 2024
2 parents de5ae43 + c8181a9 commit cdc4948
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/components/achievements/UnlockableCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,12 @@ export function UnlockableCard({
</Description>
</Flex>

<Tags as="div">#{achievement.tags}</Tags>
<Tags as="div">#{achievement.tags}</Tags>
{achievement.tags[0] === "" ? null : (
<Tags as="div">#{achievement.tags[0]}</Tags>
)}
{achievement.tags[1] === undefined ? null : (
<Tags as="div">#{achievement.tags[1]}</Tags>
)}
</CardStyle>
);
}

0 comments on commit cdc4948

Please sign in to comment.