diff --git a/components/pages/grocery/GroceryItem.tsx b/components/pages/grocery/GroceryItem.tsx index c1026bc..e521e44 100644 --- a/components/pages/grocery/GroceryItem.tsx +++ b/components/pages/grocery/GroceryItem.tsx @@ -129,7 +129,7 @@ const GroceryItem = ({ } ) : ( - !isEditingTitle && ( + !isEditingTitle && isParent && ( { .where("familyId", "==", profileData?.familyId) .get(); } else { - snapshot = await firestore() - .collection("Todos") - .where("assignees", "array-contains", user?.uid) - .get(); + let todosQuery = query(firestore().collection("Todos"), or(where("assignees", "array-contains", user?.uid), where("creatorId", "==", user?.uid))); + snapshot = await todosQuery.get(); } return snapshot.docs.map((doc) => {