Merge pull request #703 from priyanshiiit/median_fee

Get Median Fee on page reload
This commit is contained in:
softsimon 2021-08-14 02:25:35 +03:00 committed by GitHub
commit d73b814277
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -97,6 +97,13 @@ export class BlockComponent implements OnInit, OnDestroy {
})
);
}
this.stateService.blocks$.subscribe(([block]) => {
if (block.id === blockHash) {
this.block = block;
}
});
return this.electrsApiService.getBlock$(blockHash);
}
}),