From 862615d6105152953628e9080c41b52ae2c02e9f Mon Sep 17 00:00:00 2001 From: Jason Date: Thu, 30 May 2024 18:58:10 -0700 Subject: [PATCH] fix: found on more fetch to fix and fyi friends list still needs to be updated --- frontend/src/pages/IndividualGroupPage.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/src/pages/IndividualGroupPage.tsx b/frontend/src/pages/IndividualGroupPage.tsx index d6b1871..3e43e52 100644 --- a/frontend/src/pages/IndividualGroupPage.tsx +++ b/frontend/src/pages/IndividualGroupPage.tsx @@ -28,6 +28,7 @@ import BasketComp from "../components/Basket"; import Editgroup from "../components/EditGroup"; import NewBasketOptions from "../components/NewBasketOptions"; import SendInviteToGroup from "../components/SendInvite"; +import { fetchUserWithString } from "../../lib/fetches"; type Props = { LoggedInUser: IUser | null; @@ -48,7 +49,7 @@ const IndividualGroupPage: React.FC = ({ LoggedInUser }) => { try { const fetchedFriends = await Promise.all( friendIds.map(async (friendId) => { - const res = await fetch(`http://localhost:3001/users/${friendId}`); + const res = await fetchUserWithString(friendId); if (res.ok) { return res.json(); } else {