mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-01 11:33:41 +03:00
invite-search: always add search query if valid patp
This commit is contained in:
parent
e7887b34c3
commit
e5634a913d
@ -127,8 +127,8 @@ export class InviteSearch extends Component {
|
||||
isValid = false;
|
||||
}
|
||||
|
||||
if (shipMatches.length === 0 && isValid) {
|
||||
shipMatches.push(searchTerm);
|
||||
if (isValid && shipMatches.findIndex(s => s === searchTerm) < 0) {
|
||||
shipMatches.unshift(searchTerm);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -128,8 +128,8 @@ export class InviteSearch extends Component {
|
||||
isValid = false;
|
||||
}
|
||||
|
||||
if (shipMatches.length === 0 && isValid) {
|
||||
shipMatches.push(searchTerm);
|
||||
if (isValid && shipMatches.findIndex(s => s === searchTerm) < 0) {
|
||||
shipMatches.unshift(searchTerm);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -128,8 +128,8 @@ export class InviteSearch extends Component {
|
||||
isValid = false;
|
||||
}
|
||||
|
||||
if (shipMatches.length === 0 && isValid) {
|
||||
shipMatches.push(searchTerm);
|
||||
if (isValid && shipMatches.findIndex(s => s === searchTerm) < 0) {
|
||||
shipMatches.unshift(searchTerm);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -128,8 +128,8 @@ export class InviteSearch extends Component {
|
||||
isValid = false;
|
||||
}
|
||||
|
||||
if (shipMatches.length === 0 && isValid) {
|
||||
shipMatches.push(searchTerm);
|
||||
if (isValid && shipMatches.findIndex(s => s === searchTerm) < 0) {
|
||||
shipMatches.unshift(searchTerm);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user