Hide accelerator charts on non-mainnet

fixes #5265
This commit is contained in:
softsimon
2024-07-04 11:43:31 +09:00
parent 46c4d57367
commit 3c6e18f198
3 changed files with 6 additions and 1 deletions

View File

@@ -410,6 +410,10 @@ export class StateService {
return this.network === 'liquid' || this.network === 'liquidtestnet';
}
isMainnet(): boolean {
return this.env.ROOT_NETWORK === '' && this.network === '';
}
isAnyTestnet(): boolean {
return ['testnet', 'testnet4', 'signet', 'liquidtestnet'].includes(this.network);
}