Fix ETA loading error

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

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(