Simplify recent transactions observable

This commit is contained in:
Mononaut
2024-03-15 05:44:20 +00:00
parent c12e664b9a
commit 8427127545
3 changed files with 4 additions and 14 deletions

View File

@@ -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(