We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3bd16cf commit 5e31f71Copy full SHA for 5e31f71
src/pages/assignments/submit/[assignmentId].tsx
@@ -386,7 +386,7 @@ const AssignmentSubmissionPage: PageWithLayout = ({ assignment }) => {
386
type="submit"
387
disabled={
388
submitting ||
389
- (!githubUrl && !liveUrl)
+ (!githubUrl && !liveUrl && (!files || files.length === 0))
390
}
391
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"
392
>
0 commit comments