mirror of
https://github.com/mempool/mempool.git
synced 2026-08-13 12:33:11 +02:00
Added copilot's suggestions
This commit is contained in:
parent
6a9fc5c004
commit
44becb388e
1 changed files with 6 additions and 1 deletions
|
|
@ -837,6 +837,7 @@ export class TransactionComponent implements OnInit, AfterViewInit, OnDestroy {
|
|||
]).pipe(
|
||||
debounceTime(50),
|
||||
map(([position, mempoolBlocks, da, isAccelerated]) => {
|
||||
if (!this.tx) return null;
|
||||
if (position && position.txid !== this.tx.txid) return null;
|
||||
return this.etaService.calculateETA(
|
||||
this.network,
|
||||
|
|
@ -849,7 +850,11 @@ export class TransactionComponent implements OnInit, AfterViewInit, OnDestroy {
|
|||
this.accelerationPositions,
|
||||
);
|
||||
}),
|
||||
distinctUntilChanged()
|
||||
distinctUntilChanged((prev: ETA | null, curr: ETA | null) => {
|
||||
if (prev === curr) return true;
|
||||
if (!prev || !curr) return false;
|
||||
return prev.time === curr.time && prev.blocks === curr.blocks;
|
||||
})
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue