Fix ETA loading error

This commit is contained in:
softsimon committed 2024-06-26 12:12:49 +09:00
1 parent 14e05b43c7
commit a0402b92f9
3 files changed
+6 -2

No files matched your search

+1 -1
View File
@@ -26,7 +26,7 @@ export class EtaService {
getProjectedEtaObservable(estimate: AccelerationEstimate, miningStats?: MiningStats): Observable<{ hashratePercentage: number, ETA: number, acceleratedETA: number }> {
return combineLatest([
this.stateService.mempoolTxPosition$.pipe(map(p => p.position)),
this.stateService.mempoolTxPosition$.pipe(map(p => p?.position)),
this.stateService.difficultyAdjustment$,
miningStats ? of(miningStats) : this.miningService.getMiningStats('1w'),
]).pipe(