Skip to content

Commit

Permalink
fix: add friend works
Browse files Browse the repository at this point in the history
  • Loading branch information
SilveerDusk committed Jun 4, 2024
1 parent 20e34a9 commit feac215
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/components/Friends_List_Component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ const Friends_List: React.FC<Props> = ({
console.log("Cannot add yourself as friend");
} else {
const res = await fetchUserByUsername(username);
const res2 = await fetchUser(LoggedInUser._id);
const res2 = await fetchUser(LoggedInUser);
let user;
let friend;
if (res.ok && res2.ok) {
Expand Down

0 comments on commit feac215

Please sign in to comment.