Merge pull request #1492 from mempool/nymkappa/bugfix/unknown-miner-tag

If mining dashboard is enabled, set block miner to "Unknown" by default
This commit is contained in:
softsimon 2022-04-06 14:35:50 +04:00 committed by GitHub
commit f5c558e055
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -27,6 +27,11 @@ export class MinerComponent implements OnChanges {
ngOnChanges() {
this.miner = '';
if (this.stateService.env.MINING_DASHBOARD) {
this.miner = 'Unknown';
this.url = this.relativeUrlPipe.transform(`/mining/pool/unknown`);
this.target = '';
}
this.loading = true;
this.findMinerFromCoinbase();
}