Skip to content

Commit 5e31f71

Browse files
Update src/pages/assignments/submit/[assignmentId].tsx
Co-authored-by: Copilot <[email protected]>
1 parent 3bd16cf commit 5e31f71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pages/assignments/submit/[assignmentId].tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ const AssignmentSubmissionPage: PageWithLayout = ({ assignment }) => {
386386
type="submit"
387387
disabled={
388388
submitting ||
389-
(!githubUrl && !liveUrl)
389+
(!githubUrl && !liveUrl && (!files || files.length === 0))
390390
}
391391
className="hover:tw-bg-primary-dark tw-rounded-md tw-bg-primary tw-px-8 tw-py-3 tw-font-medium tw-text-white tw-transition-colors disabled:tw-cursor-not-allowed disabled:tw-opacity-50"
392392
>

0 commit comments

Comments
 (0)