fix dashboard TXs issue

This commit is contained in:
Antoni Spaanderman 2022-01-24 20:51:30 +01:00
parent 9009dcef4a
commit f1a6720666

View File

@ -143,6 +143,9 @@ export class DashboardComponent implements OnInit {
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;