Merge pull request #3368 from tylershuster/dm-dedupe

interface: deduplicate InviteSearch results
This commit is contained in:
matildepark 2020-08-24 14:45:30 -04:00 committed by GitHub
commit f421d5c453
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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) || [])
.filter((e) => {
return !(e === '');