From def17f1eeecfac32dd9c6f8250d3acab893b914e Mon Sep 17 00:00:00 2001 From: tiram88 Date: Fri, 12 Aug 2022 17:52:38 +0200 Subject: [PATCH] Fix the detection of testnet --- web/src/model/AppConfig.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/model/AppConfig.ts b/web/src/model/AppConfig.ts index 8eb9499..947f02e 100644 --- a/web/src/model/AppConfig.ts +++ b/web/src/model/AppConfig.ts @@ -27,7 +27,7 @@ export function areAppConfigsEqual(left: AppConfig, right: AppConfig): boolean { } export function isTestnet(appConfig: AppConfig): boolean { - return appConfig.network === "kaspa-testnet"; + return appConfig.network.startsWith("kaspa-testnet"); } export function isMainnet(appConfig: AppConfig): boolean {