Skip to content

Commit

Permalink
fix: found on more fetch to fix and fyi friends list still needs to b…
Browse files Browse the repository at this point in the history
…e updated
  • Loading branch information
SilveerDusk committed May 31, 2024
1 parent 6e4e28e commit 862615d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frontend/src/pages/IndividualGroupPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -48,7 +49,7 @@ const IndividualGroupPage: React.FC<Props> = ({ 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 {
Expand Down

0 comments on commit 862615d

Please sign in to comment.