Skip to content

Commit

Permalink
removed console logs added comments
Browse files Browse the repository at this point in the history
  • Loading branch information
23langloisj committed Feb 2, 2025
1 parent 08092ed commit e9f3394
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
1 change: 0 additions & 1 deletion packages/api/src/major/major.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,6 @@ export class MajorService {
);
return false;
}
console.log("ASDASDSA");
return true;
}

Expand Down
2 changes: 1 addition & 1 deletion packages/common/src/major2-validation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,6 @@ export function validateMajor2(
): MajorValidationResult {
const tracker = new Major2ValidationTracker(taken);
let concentrationReq: Requirement2[] = [];
console.log(concentrations); // this is "undecided"
if (major.concentrations) {
concentrationReq = getConcentrationsRequirement(
concentrations,
Expand Down Expand Up @@ -339,6 +338,7 @@ export function getConcentrationsRequirement(
if (concentrationsRequirement.concentrationOptions.length === 0) {
return [];
}
// Allow undecided concentrations
if (inputConcentrations === "Undecided") {
return [];
}
Expand Down
4 changes: 4 additions & 0 deletions packages/common/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ export const majorOptionObjectComparator = (
return majorNameComparator(a.value.toString(), b.value.toString());
};

/**
* Converts a list of strings or numbers into a list of option objects for the
* Select component, including an "Undecided" option.
*/
export const convertToOptionObjectsIncludingUndecided = (
options: (string | number)[]
): OptionObject[] => {
Expand Down
2 changes: 0 additions & 2 deletions packages/frontend/components/Plan/AddPlanModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,6 @@ export const AddPlanModal: React.FC<AddPlanModalProps> = ({
schedule,
};

console.log(newPlan, " THIS IS NEW PLAN");

// create the new plan
let createdPlanId: number;
if (isGuest) {
Expand Down

0 comments on commit e9f3394

Please sign in to comment.