Skip to content

Commit 9751799

Browse files
committed
fix no-extra-boolean-cast
1 parent 92ba0e6 commit 9751799

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/description/DescriptionPanel.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export const DescriptionPanel: FC<DescriptionPanelProps> = ({
3939
index,
4040
}) => {
4141
if (image && !image.positionFromMdx) {
42-
image.positionFromMdx = Boolean(index % 2) ? 'left' : 'right';
42+
image.positionFromMdx = index % 2 ? 'left' : 'right';
4343
}
4444

4545
const isFullPage =

0 commit comments

Comments
 (0)