mirror of
https://github.com/urbit/shrub.git
synced 2025-01-04 10:32:34 +03:00
interface: deduplicate InviteSearch results
This commit is contained in:
parent
94151b4a8f
commit
a441c9275b
@ -395,7 +395,7 @@ export class InviteSearch extends Component<
|
|||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
const shipResults = state.searchResults.ships.map((ship) => {
|
const shipResults = Array.from(new Set(state.searchResults.ships)).map((ship) => {
|
||||||
const nicknames = (this.state.contacts.get(ship) || [])
|
const nicknames = (this.state.contacts.get(ship) || [])
|
||||||
.filter((e) => {
|
.filter((e) => {
|
||||||
return !(e === '');
|
return !(e === '');
|
||||||
|
Loading…
Reference in New Issue
Block a user