Skip to content

Commit cf792da

Browse files
committed
Fix upload validation to require subject selection
1 parent 91d0bea commit cf792da

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/components/dashboard/UploadFlow.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ export default function UploadFlow() {
204204
};
205205

206206
const handleSubmit = async () => {
207-
if (!selectedDept || !selectedSem || files.length === 0 || !user) return;
207+
if (!selectedDept || !selectedSem || !selectedSub || files.length === 0 || !user) return;
208208

209209
setUploading(true);
210210
const newProgress: any = {};

0 commit comments

Comments
 (0)