Fix wrong timespan in acc timeline

This commit is contained in:
natsoni 2024-10-09 16:33:19 +09:00
parent 70384d8d9f
commit 15b7e75b69
No known key found for this signature in database
GPG Key ID: C65917583181743B

View File

@ -43,12 +43,10 @@ export class AccelerationTimelineComponent implements OnInit, OnChanges {
this.poolsData[pool.unique_id] = pool; this.poolsData[pool.unique_id] = pool;
} }
}); });
this.updateTimes();
this.interval = window.setInterval(this.updateTimes.bind(this), 60000);
} }
ngOnChanges(changes): void { ngOnChanges(changes): void {
this.updateTimes();
// Hide standard ETA while we don't have a proper standard ETA calculation, see https://github.com/mempool/mempool/issues/65 // Hide standard ETA while we don't have a proper standard ETA calculation, see https://github.com/mempool/mempool/issues/65
// if (changes?.eta?.currentValue || changes?.standardETA?.currentValue || changes?.acceleratedETA?.currentValue) { // if (changes?.eta?.currentValue || changes?.standardETA?.currentValue || changes?.acceleratedETA?.currentValue) {