Skip to content

Commit

Permalink
Merge pull request #240 from icefoganalytics/test
Browse files Browse the repository at this point in the history
Update nars-v17-reporting-service.ts
  • Loading branch information
datajohnson authored Jan 18, 2024
2 parents 9bc8d0c + 5ef3eee commit 83d620e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/api/services/admin/nars-v17-reporting-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,8 @@ export class NarsV17ReportingService {
.map((f: any) => f.amount ?? 0)
.reduce((a: number, f: number) => a + f, 0);

let targetedResourcesIncome = incomes.find((e) => e.income_type_id == 3 || e.income_type_id == 10); // EI and HRDC
if (targetedResourcesIncome)
let targetedResourcesIncome = incomes.filter((e) => e.income_type_id == 3 || e.income_type_id == 10); // EI and HRDC
if (isArray(targetedResourcesIncome) && targetedResourcesIncome.length > 0)
stud_cont_targfund = targetedResourcesIncome
.map((f: any) => f.amount ?? 0)
.reduce((a: number, f: number) => a + f, 0);
Expand Down

0 comments on commit 83d620e

Please sign in to comment.