Skip to content

Commit

Permalink
🚧 ensure renderScroll is correctly typed as boolean (#1373)
Browse files Browse the repository at this point in the history
  • Loading branch information
SvSven committed Dec 21, 2022
1 parent f5fd6a1 commit 223045e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ const MultiplePromotions = ({
}

const { width } = useWindowSize()
const renderScroll = useHorizontalScroll || (width && width <= 800)
const renderScroll = useHorizontalScroll || Boolean(width && width <= 800)

if (variant === 'promoteEvents') {
return (
Expand Down

0 comments on commit 223045e

Please sign in to comment.