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

This commit is contained in:
nymkappa
2023-02-23 09:50:34 +09:00
parent d73df93de7
commit 53b9310169
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;
})
);
})