mirror of
https://github.com/mempool/mempool.git
synced 2025-02-24 22:58:30 +01:00
Prevent address txs widget to send too many price requests
This commit is contained in:
parent
60a30aaede
commit
2156924d7e
1 changed files with 1 additions and 1 deletions
|
@ -58,7 +58,7 @@ export class AddressTransactionsWidgetComponent implements OnInit, OnChanges, On
|
||||||
return summary?.slice(0, 6);
|
return summary?.slice(0, 6);
|
||||||
}),
|
}),
|
||||||
switchMap(txs => {
|
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 => {
|
map(price => {
|
||||||
return {
|
return {
|
||||||
...tx,
|
...tx,
|
||||||
|
|
Loading…
Add table
Reference in a new issue