Skip to content

Commit

Permalink
Update nars-v17-reporting-service.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
datajohnson committed Jan 18, 2024
1 parent 44e6e52 commit 5ef3eee
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 5ef3eee

Please sign in to comment.