Fix some key errors (#1951)
This commit is contained in:
parent
c858b58307
commit
0dfc039a47
2 changed files with 10 additions and 5 deletions
|
@ -137,11 +137,11 @@ function SearchScreenSuggestedFollows() {
|
|||
),
|
||||
)
|
||||
).flat()
|
||||
|
||||
setSuggestions(
|
||||
// dedupe
|
||||
friendsOfFriends.filter(f => !friends.find(f2 => f.did === f2.did)),
|
||||
const deduped = friendsOfFriends.filter(
|
||||
(f, i) => friendsOfFriends.findIndex(f2 => f.did === f2.did) === i,
|
||||
)
|
||||
|
||||
setSuggestions(deduped)
|
||||
setDataUpdatedAt(Date.now())
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue