Fix for electrs requests on /bisq

This commit is contained in:
softsimon 2020-07-25 21:59:52 +07:00
parent 24e40b25fd
commit 2b4b0d22ab
No known key found for this signature in database
GPG Key ID: 488D7DCFB5A430D7

View File

@ -19,7 +19,7 @@ export class ElectrsApiService {
) {
this.apiBaseUrl = API_BASE_URL.replace('{network}', '');
this.stateService.networkChanged$.subscribe((network) => {
if (network === 'bisq' && !env.BISQ_SEPARATE_BACKEND) {
if (network === 'bisq') {
network = '';
}
this.apiBaseUrl = API_BASE_URL.replace('{network}', network ? '/' + network : '');