Electrs network routing fix
This commit is contained in:
parent
ce46aae8cc
commit
9dbf3b54fb
@ -23,7 +23,7 @@ export class LightningApiService {
|
||||
}
|
||||
this.apiBasePath = ''; // assume mainnet by default
|
||||
this.stateService.networkChanged$.subscribe((network) => {
|
||||
this.apiBasePath = network ? '/' + network : '';
|
||||
this.apiBasePath = network && network !== this.stateService.env.DEFAULT_NETWORK ? '/' + network : '';
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -25,7 +25,7 @@ export class ElectrsApiService {
|
||||
}
|
||||
this.apiBasePath = ''; // assume mainnet by default
|
||||
this.stateService.networkChanged$.subscribe((network) => {
|
||||
this.apiBasePath = network ? '/' + network : '';
|
||||
this.apiBasePath = network && network !== this.stateService.env.DEFAULT_NETWORK ? '/' + network : '';
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user