diff --git a/src/app/(agent)/agent/network/page.tsx b/src/app/(agent)/agent/network/page.tsx
index 75348fa..9616433 100644
--- a/src/app/(agent)/agent/network/page.tsx
+++ b/src/app/(agent)/agent/network/page.tsx
@@ -195,19 +195,23 @@ export default function NetworkPage() {
{/* Pending Requests List */}
{pendingRequests.length > 0 && (
- {pendingRequests.map((request) => (
+ {pendingRequests.map((request) => {
+ const profile = request.user?.userProfile;
+ const userName = [profile?.firstName, profile?.lastName].filter(Boolean).join(' ') || request.user?.email || 'Unknown User';
+ return (
- ))}
+ );
+ })}
)}
@@ -245,17 +249,21 @@ export default function NetworkPage() {
{/* Connections List */}
{connections.length > 0 && (
- {connections.map((connection) => (
+ {connections.map((connection) => {
+ const profile = connection.user?.userProfile;
+ const userName = [profile?.firstName, profile?.lastName].filter(Boolean).join(' ') || connection.user?.email || 'Unknown User';
+ return (
- ))}
+ );
+ })}
)}