Display at least one standalone mempool block.

Upgrade some packages to ng 9.
This commit is contained in:
softsimon
2020-06-04 15:08:24 +07:00
parent 6eaee15889
commit 9263c79822
3 changed files with 4 additions and 7 deletions

View File

@@ -30,10 +30,7 @@ export class AssetsComponent implements OnInit {
) { }
ngOnInit() {
this.itemsPerPage = Math.round(this.contentSpace / this.fiveItemsPxSize) * 5;
if (this.itemsPerPage === 5) {
this.itemsPerPage = 10;
}
this.itemsPerPage = Math.max(Math.round(this.contentSpace / this.fiveItemsPxSize) * 5, 10);
setTimeout(() => this.getAssets());