Skip to content

Commit

Permalink
Make Work description mandatory to match backend (#1648)
Browse files Browse the repository at this point in the history
* remove required from work description

* make report description required to match backend

* update text for description error message

* update text

---------

Co-authored-by: David Nunez <davidjnunezf@gmail.com>
  • Loading branch information
djnunez-aot and davidjnunezf authored Jan 11, 2024
1 parent a60581c commit 6e4874e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions epictrack-web/src/components/work/WorkForm/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ const schema = yup.object<Work>().shape({
federal_involvement_id: yup
.number()
.required("Federal Involvement is required"),
report_description: yup.string().required("Work description is required"),
title: yup
.string()
.required("Title is required")
Expand Down

0 comments on commit 6e4874e

Please sign in to comment.