diff --git a/react/components/MiniCartContent.js b/react/components/MiniCartContent.js index b9b1a3fd..cd25988c 100644 --- a/react/components/MiniCartContent.js +++ b/react/components/MiniCartContent.js @@ -189,14 +189,15 @@ class MiniCartContent extends Component { large ) => { const items = this.props.data.orderForm.items + const MIN_ITEMS_TO_SCROLL = 2 const classes = classNames( `${minicart.content} overflow-x-hidden pa1`, { [`${minicart.contentSmall} bg-base`]: !large, 'overflow-y-auto': large, - 'overflow-y-scroll': items.length > 2 && !large, - 'overflow-y-hidden': items.length <= 2 && !large, + 'overflow-y-scroll': items.length > MIN_ITEMS_TO_SCROLL && !large, + 'overflow-y-hidden': items.length <= MIN_ITEMS_TO_SCROLL && !large, } )