Skip to content

Commit

Permalink
resume upload patch #2
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinmonisit committed Feb 26, 2024
1 parent a6d1eb2 commit 3ec12d1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions app/dashboard/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,16 +65,15 @@ export default function Dashboard() {
const pdf = fileList[0];

const resumeData = new FormData();
resumeData.set('file', pdf as File);

if (!pdf || pdf === undefined) {
alert("There was an error uploading your resume. Please try again. If the problem persists, please email rnd@hackru.org");
} else {

await UploadResume(resumeData);
}

resumeData.set('file', pdf as File);


await UpdateSelf(otherData);
}

Expand Down

0 comments on commit 3ec12d1

Please sign in to comment.