From fd1ea2d63aa0e2a3a02e03c05d1212fb77108356 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 29 Aug 2019 11:03:23 +0530 Subject: [PATCH] updated --- .../view/home/latestblocks/latestblocks.component.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/app/view/home/latestblocks/latestblocks.component.ts b/src/app/view/home/latestblocks/latestblocks.component.ts index 5fb2126..22da767 100644 --- a/src/app/view/home/latestblocks/latestblocks.component.ts +++ b/src/app/view/home/latestblocks/latestblocks.component.ts @@ -75,18 +75,19 @@ export class LatestblocksComponent implements OnInit { if (this.CurrentpageNumber == 1) { // console.log("Enter If"); - // console.log(this.blockdetails); - console.log(this.FirstPageListData); + console.log("socket result", this.blockdetails.BlockchainBlockResult); + console.log("First page result",this.FirstPageListData); var onlyInA = this.FirstPageListData.filter(this.comparer(this.blockdetails.BlockchainBlockResult)); var onlyInB = this.blockdetails.BlockchainBlockResult.filter(this.comparer(this.FirstPageListData)); this.DifferentList = onlyInA.concat(onlyInB); this.DifferentList.forEach(DifferentList => { - this.createBlock(DifferentList) + this.FirstPageListData.unshift(DifferentList); + //this.createBlock(DifferentList) }); - console.log(this.DifferentList); + console.log("DifferentList",this.DifferentList); } this.lastblock = this.blockdetails.block_height; //console.log(this.lastblock); @@ -102,7 +103,6 @@ export class LatestblocksComponent implements OnInit { } public createBlock(DifferentList) { - this.FirstPageListData.unshift(DifferentList); const blockFactory = this.resolver.resolveComponentFactory( BlockAppendComponent, );