Fix deadline handling and prevent invalid job application modal access

This commit is contained in:
Mohak Jaiswal
2026-01-03 19:45:34 +05:30
parent 441ae8169b
commit 3a1deddb8c
2 changed files with 3 additions and 3 deletions

View File

@@ -21,7 +21,6 @@ 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<typeof jobs> & {
company: typeof companies.$inferSelect;
};
@@ -202,8 +201,8 @@ export default function JobApplicationModal({ job, studentId, resumes, isApplied
{/* Message Display */}
{message && (
<div className={`p-3 rounded-lg ${message.type === 'success'
? 'bg-green-100 text-green-700 border border-green-200'
: 'bg-red-100 text-red-700 border border-red-200'
? 'bg-green-100 text-green-700 border border-green-200'
: 'bg-red-100 text-red-700 border border-red-200'
}`}>
<div className="flex items-center gap-2">
{message.type === 'success' ? (