Skip to content

Commit 3b3ed9b

Browse files
committed
fix linting following useIsInView refactor
1 parent 46a1934 commit 3b3ed9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dotcom-rendering/src/components/Lazy.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export const Lazy = ({ children, margin, disableFlexStyles }: Props) => {
3030
// being loaded as part of a Chromatic story or not so that
3131
// we can prevent lazy loading our storybook snapshots that we
3232
// use for visual regression
33-
const renderChildren = hasBeenSeen || Lazy.disabled;
33+
const renderChildren = !!hasBeenSeen || Lazy.disabled;
3434
return (
3535
<div ref={setRef} css={!disableFlexStyles && flexGrowStyles}>
3636
{renderChildren && <>{children}</>}

0 commit comments

Comments
 (0)