Merge pull request #4225 from urbit/mp/landscape/allow-blank-ships

shipSearch: skip validating 'undefined'
This commit is contained in:
matildepark 2021-01-07 19:45:29 -05:00 committed by GitHub
commit 9c44c7eec5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -64,6 +64,8 @@ export function ShipSearch(props: InviteSearchProps) {
if(valid) {
setInputShip(ship);
setError(error === INVALID_SHIP_ERR ? undefined : error);
} else if (ship === undefined) {
return;
} else {
setError(INVALID_SHIP_ERR);
setInputTouched(false);