Skip to content

Commit

Permalink
fix no-extra-boolean-cast
Browse files Browse the repository at this point in the history
  • Loading branch information
csouchet committed Jun 4, 2024
1 parent bf2a451 commit 64d6dde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/description/DescriptionPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export const DescriptionPanel: FC<DescriptionPanelProps> = ({
index,
}) => {
if (image && !image.positionFromMdx) {
image.positionFromMdx = Boolean(index % 2) ? 'left' : 'right';
image.positionFromMdx = index % 2 ? 'left' : 'right';
}

const isFullPage =
Expand Down

0 comments on commit 64d6dde

Please sign in to comment.