Skip to content

Commit

Permalink
Merge pull request #2 from Jasonzyt/master
Browse files Browse the repository at this point in the history
fix: custom degree not working
  • Loading branch information
Mr-Sheep committed Jun 26, 2024
2 parents 723e01c + 6a133ff commit 0c5e9c9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/diploma/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ export default function Diploma() {
event.preventDefault();
const majorField: string =
enableCustomMajor && customMajor !== "" ? customMajor : major;
await createDiplomaPDF({ username, major: majorField, degree });
const degreeField: string =
enableCustomDegree && customDegree !== "" ? customDegree : degree;
await createDiplomaPDF({ username, major: majorField, degree: degreeField });
};

const handleSelectChangeMajor = async (value: string) => {
Expand Down

0 comments on commit 0c5e9c9

Please sign in to comment.