diff --git a/src/components/GroceryList/groceries/List.js b/src/components/GroceryList/groceries/List.js index 4f93ae0..fe537bd 100644 --- a/src/components/GroceryList/groceries/List.js +++ b/src/components/GroceryList/groceries/List.js @@ -32,9 +32,6 @@ export default React.memo((props) => { if (list.open === true) { setHeight(0.5) } - if (list.open === true && filteredItems.length === 0) { - setHeight(0.5) - } }, [list.open]); // if item is added or removed useEffect(() => {