Disable difficulty adjustment table for now until loadMore is implemented

This commit is contained in:
nymkappa 2022-02-22 23:32:14 +09:00
parent 4060c05015
commit a214c5ca20
No known key found for this signature in database
GPG Key ID: E155910B16E8BD04
3 changed files with 4 additions and 4 deletions

View File

@ -162,7 +162,7 @@ class Mining {
}
// Add genesis block manually
if (!indexedTimestamp.includes(genesisTimestamp)) {
if (toTimestamp <= genesisTimestamp && !indexedTimestamp.includes(genesisTimestamp)) {
hashrates.push({
hashrateTimestamp: genesisTimestamp,
avgHashrate: await bitcoinClient.getNetworkHashPs(1, 1),

View File

@ -31,7 +31,7 @@
<div class="spinner-border text-light"></div>
</div>
<div class="mt-3" *ngIf="!widget">
<!-- <div class="mt-3" *ngIf="!widget">
<table class="table table-borderless table-sm text-center">
<thead>
<tr>
@ -53,6 +53,6 @@
</tr>
</tbody>
</table>
</div>
</div> -->
</div>

View File

@ -172,7 +172,7 @@ export class HashrateChartComponent implements OnInit {
},
xAxis: {
type: 'time',
splitNumber: this.isMobile() ? 5 : 10,
splitNumber: (this.isMobile() || this.widget) ? 5 : 10,
},
legend: {
data: [