Skip to content

Commit

Permalink
bugfix: allow project without end date to be created
Browse files Browse the repository at this point in the history
  • Loading branch information
Laoujin committed Dec 27, 2024
1 parent 6904baf commit ca65737
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/components/project/EditProject.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ export const EditProject = () => {
const isButtonDisabled = !project.consultantId
|| !project.client || !project.client.clientId
|| (!project.client.defaultInvoiceLines.length && !project.client.defaultInvoiceLines[0].price)
|| !project.startDate || !isDateIntervalValid(project.startDate, project.endDate);
|| !project.startDate || (project.endDate ? !isDateIntervalValid(project.startDate, project.endDate) : false);

return (
<Container className="edit-container">
Expand Down

0 comments on commit ca65737

Please sign in to comment.