[Explore | angular-16]: [Bug fix] funders.component.ts: Added ADDITIONAL check to the previous commit (about choosing among multiple stakeholders with the same index info).

angular-16
Konstantina Galouni 6 months ago
parent 713e6014c3
commit a5beb8ba76

@ -189,6 +189,8 @@ export class FundersComponent implements OnInit {
queriedFunders4.forEach(queriedFunder => {
let id = queriedFunder.index_id + '||' + queriedFunder.index_name + '||' + queriedFunder.index_shortName;
if(this.fundersMap.has(id) && (
!this.fundersMap.get(id).monitorDashboardStatus
||
(this.fundersMap.get(id).monitorDashboardStatus == "RESTRICTED" && queriedFunder.visibility == "PUBLIC")
||
(this.fundersMap.get(id).monitorDashboardStatus == "PRIVATE" && (queriedFunder.visibility == "RESTRICTED" || queriedFunder.visibility == "PUBLIC")))) {

Loading…
Cancel
Save