mirror of
https://github.com/mempool/mempool.git
synced 2024-12-28 09:14:26 +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;
|
||||
}),
|
||||
scan((acc, [block]) => {
|
||||
if (acc.find((b) => b.height == block.height)) {
|
||||
return acc;
|
||||
}
|
||||
acc.unshift(block);
|
||||
acc = acc.slice(0, 6);
|
||||
return acc;
|
||||
|
Loading…
Reference in New Issue
Block a user