shipsearch: return patp without sigs

This commit is contained in:
Matilde Park 2020-12-10 12:56:16 -05:00
parent 8c313eba67
commit b60487ada0

View File

@ -76,7 +76,7 @@ export function ShipSearch(props: InviteSearchProps) {
if(ob.isValidPatp(ship)) { if(ob.isValidPatp(ship)) {
checkInput(true, ship); checkInput(true, ship);
} else { } else {
checkInput(ship.length !== 1, undefined) checkInput(ship.length !== 1, undefined)
} }
}, },
[checkInput] [checkInput]
@ -90,7 +90,7 @@ export function ShipSearch(props: InviteSearchProps) {
(s: string) => { (s: string) => {
setTouched(true); setTouched(true);
checkInput(true, undefined); checkInput(true, undefined);
s = `~${deSig(s)}`; s = `${deSig(s)}`;
setSelected(v => _.uniq([...v, s])) setSelected(v => _.uniq([...v, s]))
}, },
[setTouched, checkInput, setSelected] [setTouched, checkInput, setSelected]