fix dashboard TXs issue

This commit is contained in:
Antoni Spaanderman
2022-01-24 20:51:30 +01:00
parent 1beafd137b
commit f68ac944ed

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;