Fee box fixes.

This commit is contained in:
softsimon
2020-07-30 13:13:22 +07:00
parent bc92fb669b
commit 67dbea3faf
4 changed files with 16 additions and 14 deletions

View File

@@ -17,12 +17,14 @@ interface FeeEstimations {
})
export class FeesBoxComponent implements OnInit {
feeEstimations$: Observable<FeeEstimations>;
isLoadingWebSocket$: Observable<boolean>;
constructor(
private stateService: StateService,
) { }
ngOnInit(): void {
this.isLoadingWebSocket$ = this.stateService.isLoadingWebSocket$;
this.feeEstimations$ = this.stateService.mempoolBlocks$
.pipe(
filter((blocks) => !!blocks.length),