From ca6573790bbc52e11a08ebbcb9e4d4788853960f Mon Sep 17 00:00:00 2001 From: Wouter Van Schandevijl Date: Fri, 27 Dec 2024 11:55:45 +0100 Subject: [PATCH] bugfix: allow project without end date to be created --- frontend/src/components/project/EditProject.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/components/project/EditProject.tsx b/frontend/src/components/project/EditProject.tsx index aa91707b..edb58791 100644 --- a/frontend/src/components/project/EditProject.tsx +++ b/frontend/src/components/project/EditProject.tsx @@ -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 (