Skip to content

Commit

Permalink
Adjusted EditProject isDateIntervalValid function because enddate can…
Browse files Browse the repository at this point in the history
… be undefined now
  • Loading branch information
JochemVH1 committed Jul 5, 2024
1 parent f9f33c4 commit 89e10ca
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 @@ -103,7 +103,7 @@ export const EditProject = () => {
const isButtonDisabled = !project.consultantId
|| !project.client || !project.client.clientId
|| (!project.client.defaultInvoiceLines.length && !project.client.defaultInvoiceLines[0].price)
|| !project.startDate || (project.endDate ? !isDateIntervalValid(project.startDate, project.endDate) : false);
|| !project.startDate || !isDateIntervalValid(project.startDate, project.endDate);

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

0 comments on commit 89e10ca

Please sign in to comment.