Skip to content

Commit

Permalink
simplified
Browse files Browse the repository at this point in the history
  • Loading branch information
Jake Langlois committed Sep 15, 2024
1 parent c21a856 commit 5837d91
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
8 changes: 0 additions & 8 deletions packages/frontend/components/Sidebar/NUPathSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,6 @@ const NUPathSection: React.FC<NUPathSectionProps> = ({
const nupathMap: Record<string, number> = {};

for (const course of coursesTaken) {
// Check if the course is a COOP, if it is, check off the Integration Experience
if (
course.name === COOP_BLOCK.name &&
course.classId === COOP_BLOCK.classId
) {
nupathMap[NUPathEnum.EX] = 1;
}

if (!course.nupaths) {
continue;
}
Expand Down
3 changes: 2 additions & 1 deletion packages/frontend/components/Sidebar/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import {
MajorValidationResult,
PlanModel,
ScheduleCourse2,
StatusEnum,
} from "@graduate/common";
import { memo, PropsWithChildren, useEffect, useRef, useState } from "react";
import { DraggableScheduleCourse } from "../ScheduleCourse";
Expand All @@ -31,6 +30,7 @@ import { useFetchCourses, useMajor } from "../../hooks";
import { HelperToolTip } from "../Help";
import NUPathSection from "./NUPathSection";
import DropdownWarning from "./DropdownWarning";
import { NUPathEnum } from "@graduate/common";

export enum SidebarValidationStatus {
Loading = "Loading",
Expand All @@ -45,6 +45,7 @@ export const COOP_BLOCK: ScheduleCourse2<string> = {
numCreditsMax: 8,
numCreditsMin: 0,
id: `${SIDEBAR_DND_ID_PREFIX}-co-op-block"`,
nupaths: [NUPathEnum.EX],
};

const createCourseMap = (
Expand Down

0 comments on commit 5837d91

Please sign in to comment.