From 1569d3c7ce592266496d606651e90998dc6a3e52 Mon Sep 17 00:00:00 2001 From: Nicholas Pease Date: Sun, 7 Apr 2024 03:18:17 -0400 Subject: [PATCH] Hotfix for Profiles --- frontend-next/src/app/user/page.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/frontend-next/src/app/user/page.js b/frontend-next/src/app/user/page.js index f56df4f..142783d 100644 --- a/frontend-next/src/app/user/page.js +++ b/frontend-next/src/app/user/page.js @@ -95,12 +95,13 @@ function UserProfile() { useEffect(() => { if (user && profileData) { - console.log(user.uid in profileData.friends.requests) if ("friends" in user) { profileData.uid in user.friends.friends ? setFriends(true) : setFriends(false); } if ("friends" in profileData) { - user.uid in profileData.friends.requests ? setPending(true) : setPending(false); + if ("requests" in profileData.friends) { + user.uid in profileData.friends.requests ? setPending(true) : setPending(false); + } } } }, [user, profileData]); -- 2.52.0