Simplify recent transactions observable

This commit is contained in:
Mononaut committed 2024-03-15 06:05:52 +00:00
1 parent c12e664b9a
commit 8427127545
3 files changed
+4 -14

No files matched your search

@@ -189,17 +189,7 @@ export class DashboardComponent implements OnInit, OnDestroy, AfterViewInit {
})
);
this.transactions$ = this.stateService.transactions$
.pipe(
scan((acc, tx) => {
if (acc.find((t) => t.txid == tx.txid)) {
return acc;
}
acc.unshift(tx);
acc = acc.slice(0, 6);
return acc;
}, []),
);
this.transactions$ = this.stateService.transactions$;
this.blocks$ = this.stateService.blocks$
.pipe(