diff --git a/components/pages/grocery/GroceryItem.tsx b/components/pages/grocery/GroceryItem.tsx
index dbc6047..32c79ad 100644
--- a/components/pages/grocery/GroceryItem.tsx
+++ b/components/pages/grocery/GroceryItem.tsx
@@ -56,6 +56,10 @@ const GroceryItem = ({
}
};
+ const getInitials = (firstName: string, lastName: string) => {
+ return `${firstName.charAt(0)}${lastName.charAt(0)}`;
+ };
+
return (
-
+ {profileData?.pfp ? :
+
+
+ {getInitials(itemCreator.firstName, itemCreator.lastName ?? "")}
+
+
+ }
Requested by {itemCreator?.firstName}