From fa93ed855d1b5fe3731eb5511ce210ff526158ad Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 25 Feb 2026 19:12:32 +0000 Subject: [PATCH 1/2] Initial plan From 9128daa98e8e9d909af43b32197e604194b432ac Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 25 Feb 2026 19:16:48 +0000 Subject: [PATCH 2/2] fix: display requested friend's name in pending partner requests Co-authored-by: JustinhSE <84724234+JustinhSE@users.noreply.github.com> --- src/components/FriendsList.tsx | 54 ++++++++++++++++------------------ src/utils/auth.tsx | 16 ++++++++-- 2 files changed, 38 insertions(+), 32 deletions(-) diff --git a/src/components/FriendsList.tsx b/src/components/FriendsList.tsx index a155cef..d39b0cd 100644 --- a/src/components/FriendsList.tsx +++ b/src/components/FriendsList.tsx @@ -73,7 +73,7 @@ const FriendsList: React.FC = () => { const filteredUsernames = usernamesData.filter((user: any) => { return user.id !== auth.currentUser?.uid && !friends.some(friend => friend.id === user.id) && - !friendRequests.outgoing.includes(user.id); + !friendRequests.outgoing.some((u: any) => u.id === user.id); }); setAllUsernames(filteredUsernames); } catch (error) { @@ -541,37 +541,33 @@ const FriendsList: React.FC = () => {
{user ? `${user.firstName} ${user.lastName}` : 'User'}
- - Pending - -{user ? `@${user.username}` : ''}
+ {friendRequests.outgoing.map((outgoingUser) => ( +{outgoingUser.firstName} {outgoingUser.lastName}
+ + Pending +@{outgoingUser.username}