Skip to content

Commit

Permalink
(PC-33886) fix sonar issue
Browse files Browse the repository at this point in the history
  • Loading branch information
yleclercq-pass committed Jan 10, 2025
1 parent 7190f5a commit 883d09d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/ui/components/InfoHeader/InfoHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@ export const InfoHeader: FunctionComponent<InfoHeaderProps> = ({
children,
}) => (
<StyledView>
{thumbnailComponent ? (
thumbnailComponent
) : (
{thumbnailComponent || (
<ThumbnailPlaceholder
width={defaultThumbnailSize}
height={defaultThumbnailSize}
Expand All @@ -34,7 +32,7 @@ export const InfoHeader: FunctionComponent<InfoHeaderProps> = ({
{children}
<TitleContainer>
<Title>{title}</Title>
{rightComponent ? rightComponent : null}
{rightComponent || null}
</TitleContainer>
{subtitle ? <Subtitle>{subtitle}</Subtitle> : null}
</RightContainer>
Expand Down

0 comments on commit 883d09d

Please sign in to comment.