leap: yank own ~patp from results

fixes urbit/landscape#598
This commit is contained in:
James Acklin 2021-04-12 22:23:19 -04:00
parent 92c39dc526
commit e80101ab0a

View File

@ -144,6 +144,9 @@ export function Omnibox(props: OmniboxProps): ReactElement {
})
);
});
resultsMap.set('ships', resultsMap.get('ships').filter(ship => (
ship.title === `~${window.ship}` ? null : (ship)
)));
return resultsMap;
}, [query, index]);