Skip to content

Commit

Permalink
Still improve thesis creation validation process
Browse files Browse the repository at this point in the history
  • Loading branch information
AleksTeresh committed May 28, 2024
1 parent d639f54 commit 19eb7cf
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/client/components/ThesisPage/ThesisEditForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,7 @@ const ThesisEditForm: React.FC<{
const totalPercentage = getTotalPercentage()

const canSubmit = Boolean(
editedThesis?.topic &&
editedThesis?.programId &&
editedThesis?.authors.length &&
editedThesis?.supervisions.length &&
editedThesis?.supervisions.length &&
totalPercentage === 100 &&
editedThesis?.status &&
editedThesis?.startDate &&
Expand Down Expand Up @@ -340,11 +337,6 @@ const ThesisEditForm: React.FC<{
{t('thesisForm:supervisionPercentageError')}
</Alert>
)}
{!editedThesis?.authors.length && (
<Alert icon={<ErrorIcon fontSize="inherit" />} severity="error">
{t('thesisForm:authorMissingError')}
</Alert>
)}
{!editedThesis.researchPlan && (
<Alert icon={<ErrorIcon fontSize="inherit" />} severity="error">
{t('thesisForm:researchPlanMissingError')}
Expand Down

0 comments on commit 19eb7cf

Please sign in to comment.