Fix transaction filter logic for first seen fetching
This commit is contained in:
parent
915f7a6c27
commit
68ea7c59f3
@ -240,7 +240,7 @@ export class TransactionComponent implements OnInit, AfterViewInit, OnDestroy {
|
|||||||
retry({ count: 2, delay: 2000 }),
|
retry({ count: 2, delay: 2000 }),
|
||||||
// Try again until we either get a valid response, or the transaction is confirmed
|
// Try again until we either get a valid response, or the transaction is confirmed
|
||||||
repeat({ delay: 2000 }),
|
repeat({ delay: 2000 }),
|
||||||
filter((transactionTimes) => transactionTimes?.length && transactionTimes[0] > 0 && !this.tx.status?.confirmed),
|
filter((transactionTimes) => transactionTimes?.[0] > 0 || this.tx.status?.confirmed),
|
||||||
take(1),
|
take(1),
|
||||||
)),
|
)),
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user