Skip to content

Commit

Permalink
Asdad
Browse files Browse the repository at this point in the history
  • Loading branch information
thomaspwang committed Oct 16, 2022
1 parent 31c2095 commit 37e2236
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions frontend/src/components/FriendSearch/FriendSearch.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function FriendSearch() {
'Origin' : 'http://localhost:3000'
},
body: JSON.stringify({
"username" : "a",
"username" : user,
"friend" : inputText
})
});
Expand All @@ -49,14 +49,14 @@ function FriendSearch() {
'Origin' : 'http://localhost:3000'
}
}).then(response =>
response.json().then(data => setFriends(data)))
response.json().then(data => console.log(data['friends'])))
}

useEffect(() => {
getFriends();
console.log(user)
console.log(typeof friends)
console.log(friends)
console.log(typeof friends.entries)
}, [])

return (
Expand Down

0 comments on commit 37e2236

Please sign in to comment.