[mining] use .slug to load pool logo

This commit is contained in:
nymkappa
2023-07-28 13:45:04 +09:00
parent 395f47516a
commit 3f3f0db2f2
6 changed files with 7 additions and 6 deletions

View File

@@ -159,7 +159,7 @@ export class DashboardComponent implements OnInit, OnDestroy, AfterViewInit {
for (const block of blocks) {
// @ts-ignore: Need to add an extra field for the template
block.extras.pool.logo = `/resources/mining-pools/` +
block.extras.pool.name.toLowerCase().replace(' ', '').replace('.', '') + '.svg';
block.extras.pool.slug + '.svg';
}
}
return of(blocks.slice(0, 6));