Skip to content

Commit

Permalink
Don't show self in search results
Browse files Browse the repository at this point in the history
  • Loading branch information
ProLoser authored Sep 5, 2024
1 parent deab902 commit 708cce9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Online/Friends/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export default function Friends() {
})
searchResults.forEach(result => {
const resultData: UserData = result.val()
if (friends.includes(result.key) || searchReject(resultData)) {
if (result.key === authUser.key || friends.includes(result.key) || searchReject(resultData)) {
return;
}
renderFriends.push(row(resultData))
Expand Down

0 comments on commit 708cce9

Please sign in to comment.