Skip to content

Commit

Permalink
#2808 formatting changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Jalen Wu authored and Jalen Wu committed Sep 19, 2024
1 parent eef96e2 commit 3bc421e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/frontend/src/utils/work-package.utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,17 @@ export const getTitleFromFormType = (formType: WPFormType, wbsElement: WbsElemen
* @param wpList a list of work packages.
* @returns a list of work packages that are overdue.
*/
export const getOverdueWorkPackages = (wpList : WorkPackage[]) : WorkPackage[] => {
const overdueWorkPackages : WorkPackage[] = [];
export const getOverdueWorkPackages = (wpList: WorkPackage[]): WorkPackage[] => {
const overdueWorkPackages: WorkPackage[] = [];

for(let i = 0; i < wpList.length ; i++){
for (let i = 0; i < wpList.length; i++) {
const curr = wpList[i];

// if the work package is anything but complete and the end date is before today, it is overdue.
if(curr.status !== WbsElementStatus.Complete && curr.endDate < new Date()){
if (curr.status !== WbsElementStatus.Complete && curr.endDate < new Date()) {
overdueWorkPackages.push(curr);
}
}

return overdueWorkPackages;
};
};

0 comments on commit 3bc421e

Please sign in to comment.