[accelerator] always show last 6 completed accelerations in accel dashboard
This commit is contained in:
parent
bc583979c5
commit
522a473213
@ -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…
x
Reference in New Issue
Block a user