mirror of
https://github.com/mempool/mempool.git
synced 2025-01-19 05:34:03 +01:00
handle /utxos error on address page
This commit is contained in:
parent
5b73362e44
commit
60adad8db3
@ -219,9 +219,13 @@ export class AddressComponent implements OnInit, OnDestroy {
|
||||
address.is_pubkey
|
||||
? this.electrsApiService.getScriptHashTransactions$((address.address.length === 66 ? '21' : '41') + address.address + 'ac')
|
||||
: this.electrsApiService.getAddressTransactions$(address.address),
|
||||
utxoCount >= 2 && utxoCount <= 500 ? (address.is_pubkey
|
||||
(utxoCount >= 2 && utxoCount <= 500 ? (address.is_pubkey
|
||||
? this.electrsApiService.getScriptHashUtxos$((address.address.length === 66 ? '21' : '41') + address.address + 'ac')
|
||||
: this.electrsApiService.getAddressUtxos$(address.address)) : of([])
|
||||
: this.electrsApiService.getAddressUtxos$(address.address)) : of([])).pipe(
|
||||
catchError(() => {
|
||||
return of([]);
|
||||
})
|
||||
)
|
||||
]);
|
||||
}),
|
||||
switchMap(([transactions, utxos]) => {
|
||||
|
Loading…
Reference in New Issue
Block a user