mirror of
https://github.com/urbit/shrub.git
synced 2024-12-19 16:51:42 +03:00
Merge pull request #4225 from urbit/mp/landscape/allow-blank-ships
shipSearch: skip validating 'undefined'
This commit is contained in:
commit
9c44c7eec5
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user