Merge pull request #5380 from mempool/simon/1w-1m

fixes crash with missing pool partner
This commit is contained in:
wiz 2024-07-28 14:40:50 -05:00 committed by GitHub
commit d02a2ccf65
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -844,7 +844,7 @@ export class TransactionComponent implements OnInit, AfterViewInit, OnDestroy {
}
if (this.isAcceleration) {
// this immediately returns cached stats if we fetched them recently
this.miningService.getMiningStats('1w').subscribe(stats => {
this.miningService.getMiningStats('1m').subscribe(stats => {
this.miningStats = stats;
this.isAccelerated$.next(this.isAcceleration); // hack to trigger recalculation of ETA without adding another source observable
});