Fix network regex matching

This commit is contained in:
softsimon 2022-08-22 18:10:09 +04:00
parent 77d5f78c4e
commit d8f83b4c47

View File

@ -153,7 +153,7 @@ export class StateService {
if (this.env.BASE_MODULE !== 'mempool' && this.env.BASE_MODULE !== 'liquid') { if (this.env.BASE_MODULE !== 'mempool' && this.env.BASE_MODULE !== 'liquid') {
return; return;
} }
const networkMatches = url.match(/\/(bisq|testnet|liquidtestnet|liquid|signet)/); const networkMatches = url.match(/^\/(bisq|testnet|liquidtestnet|liquid|signet)/);
switch (networkMatches && networkMatches[1]) { switch (networkMatches && networkMatches[1]) {
case 'liquid': case 'liquid':
if (this.network !== 'liquid') { if (this.network !== 'liquid') {