fix dashboard blocks issue

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

View File

@ -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;