From 441ae8169b25e5b9d4bea044963fd38811bdb917 Mon Sep 17 00:00:00 2001 From: Mohak Jaiswal Date: Sat, 3 Jan 2026 19:33:00 +0530 Subject: [PATCH] Fix deadline handling and prevent invalid job application modal access --- apps/student/components/job-application-modal.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/student/components/job-application-modal.tsx b/apps/student/components/job-application-modal.tsx index cd9f91f..814d4d2 100644 --- a/apps/student/components/job-application-modal.tsx +++ b/apps/student/components/job-application-modal.tsx @@ -21,6 +21,7 @@ import { applyForJob } from "../app/(main)/actions" import { type InferSelectModel } from '@workspace/db/drizzle'; import { jobs, companies, resumes } from '@workspace/db/schema'; + export type Job = InferSelectModel & { company: typeof companies.$inferSelect; }; @@ -201,8 +202,8 @@ export default function JobApplicationModal({ job, studentId, resumes, isApplied {/* Message Display */} {message && (
{message.type === 'success' ? (