Skip to content

Commit

Permalink
Fix the detection of testnet
Browse files Browse the repository at this point in the history
  • Loading branch information
tiram88 committed Aug 12, 2022
1 parent fd35f03 commit def17f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/src/model/AppConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit def17f1

Please sign in to comment.