Skip to content

Commit cff5bad

Browse files
committed
yep
1 parent 7ee5f95 commit cff5bad

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

frontend/degree-plan/components/OnboardingPanels/CreateWithTranscriptPanel.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ export default function CreateWithTranscriptPanel({
177177
const graduationYearOptions = getYearOptions()?.gradYears;
178178

179179
const majorOptionsCallback = useCallback(() => {
180-
const majorOptions = getMajorOptions(degrees, schools, startingYear);
180+
const majorOptions = getMajorOptions(degrees, schools, startingYear?.value ?? null);
181181
return majorOptions;
182182
}, [schools, startingYear]);
183183

frontend/degree-plan/utils/parseUtils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export const parseItems = (items: LineItem[]) => {
5757
export const getMajorOptions = (
5858
degrees: DegreeListing[] | undefined,
5959
schools: SchoolOption[],
60-
startingYear: number
60+
startingYear: number | null
6161
): DegreeOption[] | undefined => {
6262
const majorOptions = degrees
6363
?.filter((d) => schools.map((s) => s.value).includes(d.degree))

0 commit comments

Comments
 (0)