diff --git a/app/dashboard/page.tsx b/app/dashboard/page.tsx index 76f2836..1f9771c 100644 --- a/app/dashboard/page.tsx +++ b/app/dashboard/page.tsx @@ -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); }