fix: completed cycle date picker validation (#5265)

This commit is contained in:
Anmol Singh Bhatia 2024-07-30 14:03:53 +05:30 committed by GitHub
parent dc2e293058
commit 6bb534dabc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -387,7 +387,7 @@ export const CycleDetailsSidebar: React.FC<Props> = observer((props) => {
to: "End date",
}}
required={cycleDetails.status !== "draft"}
disabled={!isEditingAllowed || isArchived}
disabled={!isEditingAllowed || isArchived || isCompleted}
/>
)}
/>