Remove all lightning elements on unsupported networks

This commit is contained in:
Mononaut
2024-05-12 16:44:07 +00:00
parent db34ca6a5f
commit 788caf05ce
8 changed files with 11 additions and 8 deletions

View File

@@ -122,7 +122,7 @@ export class SearchFormComponent implements OnInit {
]);
}
this.isTypeaheading$.next(true);
if (!this.stateService.env.LIGHTNING) {
if (!this.stateService.networkSupportsLightning()) {
return zip(
this.electrsApiService.getAddressesByPrefix$(text).pipe(catchError(() => of([]))),
[{ nodes: [], channels: [] }],