mirror of
https://github.com/mempool/mempool.git
synced 2024-12-30 18:24:25 +01:00
fix dashboard blocks issue
This commit is contained in:
parent
f111c006ce
commit
1beafd137b
@ -131,6 +131,9 @@ export class DashboardComponent implements OnInit {
|
|||||||
this.latestBlockHeight = block.height;
|
this.latestBlockHeight = block.height;
|
||||||
}),
|
}),
|
||||||
scan((acc, [block]) => {
|
scan((acc, [block]) => {
|
||||||
|
if (acc.find((b) => b.height == block.height)) {
|
||||||
|
return acc;
|
||||||
|
}
|
||||||
acc.unshift(block);
|
acc.unshift(block);
|
||||||
acc = acc.slice(0, 6);
|
acc = acc.slice(0, 6);
|
||||||
return acc;
|
return acc;
|
||||||
|
Loading…
Reference in New Issue
Block a user