diff --git a/components/pages/grocery/GroceryItem.tsx b/components/pages/grocery/GroceryItem.tsx index ec652b2..2d4d0eb 100644 --- a/components/pages/grocery/GroceryItem.tsx +++ b/components/pages/grocery/GroceryItem.tsx @@ -109,12 +109,12 @@ const GroceryItem = ({ {!item.approved ? ( - {isParent || isCaregiver && ( + {(isParent || isCaregiver) && ( <> handleItemApproved(item.id, { approved: true }) } @@ -140,10 +140,8 @@ const GroceryItem = ({ name="close" size={24} style={{ color: "grey", marginRight: 10 }} - onPress={() => { - handleItemApproved(item.id, { approved: false }); - deleteGrocery(item.id); - }}/> + onPress={() => deleteGrocery(item.id)} + /> }