diff --git a/src/app/tabbar/tabbar.component.ts b/src/app/tabbar/tabbar.component.ts index 76fabdb..a9c253b 100644 --- a/src/app/tabbar/tabbar.component.ts +++ b/src/app/tabbar/tabbar.component.ts @@ -77,7 +77,9 @@ export class TabbarComponent implements OnInit { USCI : this.route.snapshot.queryParams.usci } this.http.get('/api/Companies',{params:params}).subscribe((data:any) => { - this.companyIntegrityScore = data.items[0].companyIntegrityScore + this.companyIntegrityScore ? + this.companyIntegrityScore = data.items[0].companyIntegrityScore : + null // console.log(data) }) }