From 9af2d478c8de254b8ae28d7141c6656db66eb183 Mon Sep 17 00:00:00 2001 From: softsimon Date: Mon, 22 Aug 2022 18:10:09 +0400 Subject: [PATCH] Fix network regex matching --- frontend/src/app/services/state.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/app/services/state.service.ts b/frontend/src/app/services/state.service.ts index 466837f98..14d220fa1 100644 --- a/frontend/src/app/services/state.service.ts +++ b/frontend/src/app/services/state.service.ts @@ -153,7 +153,7 @@ export class StateService { if (this.env.BASE_MODULE !== 'mempool' && this.env.BASE_MODULE !== 'liquid') { return; } - const networkMatches = url.match(/\/(bisq|testnet|liquidtestnet|liquid|signet)/); + const networkMatches = url.match(/^\/(bisq|testnet|liquidtestnet|liquid|signet)/); switch (networkMatches && networkMatches[1]) { case 'liquid': if (this.network !== 'liquid') {