diff --git a/components/pages/grocery/GroceryItem.tsx b/components/pages/grocery/GroceryItem.tsx index 354dd44..ec652b2 100644 --- a/components/pages/grocery/GroceryItem.tsx +++ b/components/pages/grocery/GroceryItem.tsx @@ -134,17 +134,29 @@ const GroceryItem = ({ ) : ( !isEditingTitle && (isParent || isCaregiver) && ( - - updateGroceryItem({ id: item.id, bought: !item.bought }) - } - /> + + {item.bought && + { + handleItemApproved(item.id, { approved: false }); + deleteGrocery(item.id); + }}/> + } + + updateGroceryItem({ id: item.id, bought: !item.bought }) + } + /> + ) )}