fix dashboard TXs issue
This commit is contained in:
parent
1beafd137b
commit
f68ac944ed
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user