mirror of
https://github.com/mempool/mempool.git
synced 2024-12-28 01:04:28 +01:00
Don't use slugs
if it's not available in pools.json frontend
This commit is contained in:
parent
ad89d9d9e8
commit
68f3022420
@ -46,7 +46,7 @@ export class MinerComponent implements OnChanges {
|
|||||||
this.miner = pools.payout_addresses[vout.scriptpubkey_address].name;
|
this.miner = pools.payout_addresses[vout.scriptpubkey_address].name;
|
||||||
this.title = $localize`:@@miner-identified-by-payout:Identified by payout address: '${vout.scriptpubkey_address}:PAYOUT_ADDRESS:'`;
|
this.title = $localize`:@@miner-identified-by-payout:Identified by payout address: '${vout.scriptpubkey_address}:PAYOUT_ADDRESS:'`;
|
||||||
const pool = pools.payout_addresses[vout.scriptpubkey_address];
|
const pool = pools.payout_addresses[vout.scriptpubkey_address];
|
||||||
if (this.stateService.env.MINING_DASHBOARD && pools.slugs[pool.name] !== undefined) {
|
if (this.stateService.env.MINING_DASHBOARD && pools.slugs && pools.slugs[pool.name] !== undefined) {
|
||||||
this.url = this.relativeUrlPipe.transform(`/mining/pool/${pools.slugs[pool.name]}`);
|
this.url = this.relativeUrlPipe.transform(`/mining/pool/${pools.slugs[pool.name]}`);
|
||||||
this.target = '';
|
this.target = '';
|
||||||
} else {
|
} else {
|
||||||
@ -62,7 +62,7 @@ export class MinerComponent implements OnChanges {
|
|||||||
const pool = pools.coinbase_tags[tag];
|
const pool = pools.coinbase_tags[tag];
|
||||||
this.miner = pool.name;
|
this.miner = pool.name;
|
||||||
this.title = $localize`:@@miner-identified-by-coinbase:Identified by coinbase tag: '${tag}:TAG:'`;
|
this.title = $localize`:@@miner-identified-by-coinbase:Identified by coinbase tag: '${tag}:TAG:'`;
|
||||||
if (this.stateService.env.MINING_DASHBOARD && pools.slugs[pool.name] !== undefined) {
|
if (this.stateService.env.MINING_DASHBOARD && pools.slugs && pools.slugs[pool.name] !== undefined) {
|
||||||
this.url = this.relativeUrlPipe.transform(`/mining/pool/${pools.slugs[pool.name]}`);
|
this.url = this.relativeUrlPipe.transform(`/mining/pool/${pools.slugs[pool.name]}`);
|
||||||
this.target = '';
|
this.target = '';
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user