From 2156924d7ea5aa1f7a70f0b638520162120b031a Mon Sep 17 00:00:00 2001 From: natsoni Date: Wed, 12 Jun 2024 20:02:54 +0200 Subject: [PATCH] Prevent address txs widget to send too many price requests --- .../address-transactions-widget.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/app/components/address-transactions-widget/address-transactions-widget.component.ts b/frontend/src/app/components/address-transactions-widget/address-transactions-widget.component.ts index c3fc4260e..998d269ba 100644 --- a/frontend/src/app/components/address-transactions-widget/address-transactions-widget.component.ts +++ b/frontend/src/app/components/address-transactions-widget/address-transactions-widget.component.ts @@ -58,7 +58,7 @@ export class AddressTransactionsWidgetComponent implements OnInit, OnChanges, On return summary?.slice(0, 6); }), switchMap(txs => { - return (zip(txs.map(tx => this.priceService.getBlockPrice$(tx.time, true, this.currency).pipe( + return (zip(txs.map(tx => this.priceService.getBlockPrice$(tx.time, txs.length < 3, this.currency).pipe( map(price => { return { ...tx,