fix dashboard TXs issue

This commit is contained in:
Antoni Spaanderman 2022-01-24 20:51:30 +01:00
parent 1beafd137b
commit f68ac944ed
No known key found for this signature in database
GPG Key ID: AE0B68E552E5DF8C

View File

@ -143,6 +143,9 @@ export class DashboardComponent implements OnInit {
this.transactions$ = this.stateService.transactions$ this.transactions$ = this.stateService.transactions$
.pipe( .pipe(
scan((acc, tx) => { scan((acc, tx) => {
if (acc.find((t) => t.txid == tx.txid)) {
return acc;
}
acc.unshift(tx); acc.unshift(tx);
acc = acc.slice(0, 6); acc = acc.slice(0, 6);
return acc; return acc;