Redo/Fix completely failed PR #3092 + add PR #3105

This commit is contained in:
nymkappa
2023-02-23 09:50:34 +09:00
parent 6e7ed29caa
commit f44eacd5d5
8 changed files with 79 additions and 73 deletions

View File

@@ -443,9 +443,9 @@ export class BlockComponent implements OnInit, OnDestroy {
}
this.priceSubscription = block$.pipe(
switchMap((block) => {
return this.priceService.getPrices().pipe(
tap(() => {
this.blockConversion = this.priceService.getPriceForTimestamp(block.timestamp);
return this.priceService.getBlockPrice$(block.timestamp).pipe(
tap((price) => {
this.blockConversion = price;
})
);
})