Small fixes.

This commit is contained in:
softsimon
2020-03-25 18:41:16 +07:00
parent 7abf978795
commit 43585be6a9
2 changed files with 10 additions and 5 deletions

View File

@@ -35,8 +35,9 @@ export class MempoolBlocksComponent implements OnInit, OnDestroy {
ngOnInit() {
this.mempoolBlocksSubscription = this.stateService.mempoolBlocks$
.subscribe((blocks) => {
this.mempoolBlocksFull = JSON.parse(JSON.stringify(blocks));
this.mempoolBlocks = this.reduceMempoolBlocksToFitScreen(blocks);
const stringifiedBlocks = JSON.stringify(blocks);
this.mempoolBlocksFull = JSON.parse(stringifiedBlocks);
this.mempoolBlocks = this.reduceMempoolBlocksToFitScreen(JSON.parse(stringifiedBlocks));
this.calculateTransactionPosition();
});