Fix issue when switching between testnet and liquid mainnet

This commit is contained in:
softsimon 2021-12-30 03:07:08 +04:00
parent 5ea4b043d9
commit d89d7efbe6
No known key found for this signature in database
GPG Key ID: 488D7DCFB5A430D7

View File

@ -168,17 +168,17 @@ export class StateService {
} }
return; return;
default: default:
if (this.env.BASE_MODULE !== 'mempool' && this.network !== this.env.BASE_MODULE) { if (this.env.BASE_MODULE !== 'mempool') {
if (this.network !== this.env.BASE_MODULE) {
this.network = this.env.BASE_MODULE; this.network = this.env.BASE_MODULE;
this.networkChanged$.next(this.env.BASE_MODULE); this.networkChanged$.next(this.env.BASE_MODULE);
} else { }
if (this.network !== '') { } else if (this.network !== '') {
this.network = ''; this.network = '';
this.networkChanged$.next(''); this.networkChanged$.next('');
} }
} }
} }
}
getHiddenProp(){ getHiddenProp(){
const prefixes = ['webkit', 'moz', 'ms', 'o']; const prefixes = ['webkit', 'moz', 'ms', 'o'];