Fix for electrs requests on /bisq

This commit is contained in:
softsimon 2020-07-25 21:59:52 +07:00
parent d80faf0630
commit 274dbd8b4f

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 : '');