Add support for USD in address history graph

This commit is contained in:
natsoni
2024-06-12 11:47:57 +02:00
parent 684ad9f0e6
commit 7bef8653b1
4 changed files with 208 additions and 21 deletions

View File

@@ -150,7 +150,7 @@ export class TransactionsListComponent implements OnInit, OnChanges {
this.transactions.forEach((tx) => {
if (!this.blockTime) {
if (tx.status.block_time) {
this.priceService.getBlockPrice$(tx.status.block_time, confirmedTxs < 10, this.currency).pipe(
this.priceService.getBlockPrice$(tx.status.block_time, confirmedTxs < 3, this.currency).pipe(
tap((price) => tx['price'] = price),
).subscribe();
}
@@ -235,7 +235,7 @@ export class TransactionsListComponent implements OnInit, OnChanges {
}
if (!this.blockTime && tx.status.block_time && this.currency) {
this.priceService.getBlockPrice$(tx.status.block_time, confirmedTxs < 10, this.currency).pipe(
this.priceService.getBlockPrice$(tx.status.block_time, confirmedTxs < 3, this.currency).pipe(
tap((price) => tx['price'] = price),
).subscribe();
}