diff --git a/src/controllers/ReportController.ts b/src/controllers/ReportController.ts index 8e70846..ea7f5d0 100644 --- a/src/controllers/ReportController.ts +++ b/src/controllers/ReportController.ts @@ -2662,13 +2662,13 @@ export class ReportController extends Controller { const agency = _salaryPeriod[0] == null ? "" : _salaryPeriod[0].root; const fifteenPercent = - (_salaryPeriod[0].salaryOrg == null || _salaryPeriod[0].salaryOrg?.fifteenPercent == null + (_salaryPeriod[0]?.salaryOrg == null || _salaryPeriod[0]?.salaryOrg?.fifteenPercent == null ? "" - : _salaryPeriod[0].salaryOrg?.fifteenPercent.toString()) + + : _salaryPeriod[0]?.salaryOrg?.fifteenPercent.toString()) + "." + - (_salaryPeriod[0].salaryOrg == null || _salaryPeriod[0].salaryOrg?.fifteenPoint == null + (_salaryPeriod[0]?.salaryOrg == null || _salaryPeriod[0]?.salaryOrg?.fifteenPoint == null ? "๐๐" - : _salaryPeriod[0].salaryOrg?.fifteenPoint.toString()); + : _salaryPeriod[0]?.salaryOrg?.fifteenPoint.toString()); const formattedData = _salaryPeriod.map((profile, index) => { const fullName = `${profile.prefix}${profile.firstName} ${profile.lastName}`;