mirror of
https://github.com/mempool/mempool.git
synced 2025-04-08 11:58:31 +02:00
Select lightning node by default in search results of public key
This commit is contained in:
parent
321181d708
commit
d5508872dd
@ -28,6 +28,10 @@ export class SearchResultsComponent implements OnChanges {
|
||||
this.activeIdx = 0;
|
||||
if (this.results) {
|
||||
this.resultsFlattened = [...(this.results.hashQuickMatch ? [this.results.searchText] : []), ...this.results.addresses, ...this.results.pools, ...this.results.nodes, ...this.results.channels, ...this.results.otherNetworks];
|
||||
// If searchText is a public key corresponding to a node, select it by default
|
||||
if (this.results.publicKey && this.results.nodes.length > 0) {
|
||||
this.activeIdx = 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user