Skip to content

Commit

Permalink
fix: using null insted of && operator
Browse files Browse the repository at this point in the history
  • Loading branch information
kevkevinpal committed Nov 1, 2023
1 parent 0b60aa8 commit 7a65397
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/App/SideBar/Relevance/Episode/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,11 @@ export const Episode = ({
<Flex align="center" direction="row">
{type && <TypeBadge type={type} />}
</Flex>
{type === 'youtube' && (
{type === 'youtube' ? (
<StyledLink href={`${link}?open=system`} onClick={(e) => e.stopPropagation()}>
<LinkIcon />
</StyledLink>
)}
) : null}
</Flex>

<Description data-testid="episode-description">{episodeTitle}</Description>
Expand Down

0 comments on commit 7a65397

Please sign in to comment.