mirror of
https://github.com/mempool/mempool.git
synced 2024-11-19 18:03:00 +01:00
Merge pull request #5171 from mempool/nymkappa/fix-accel-dashboard-many-pending
[accelerator] always show last 6 completed accelerations in accel dashboard
This commit is contained in:
commit
02eb633d89
@ -96,10 +96,16 @@ export class AcceleratorDashboardComponent implements OnInit, OnDestroy {
|
|||||||
share(),
|
share(),
|
||||||
);
|
);
|
||||||
|
|
||||||
this.minedAccelerations$ = this.accelerations$.pipe(
|
this.minedAccelerations$ = this.stateService.chainTip$.pipe(
|
||||||
map(accelerations => {
|
distinctUntilChanged(),
|
||||||
return accelerations.filter(acc => ['completed_provisional', 'completed'].includes(acc.status));
|
switchMap(() => {
|
||||||
})
|
return this.serviceApiServices.getAccelerationHistory$({ status: 'completed', pageLength: 6 }).pipe(
|
||||||
|
catchError(() => {
|
||||||
|
return of([]);
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
}),
|
||||||
|
share(),
|
||||||
);
|
);
|
||||||
|
|
||||||
this.blocks$ = combineLatest([
|
this.blocks$ = combineLatest([
|
||||||
|
Loading…
Reference in New Issue
Block a user