Skip to content

Commit

Permalink
updated validationSchema
Browse files Browse the repository at this point in the history
  • Loading branch information
tongo-angelov committed Sep 17, 2023
1 parent e35260e commit 60c8041
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions src/components/common/person/PersonForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ const validationSchema: yup.SchemaOf<PersonFormData> = yup.object().defined().sh
companyNumber: yup.string(),
legalPersonName: name,
address: yup.string(),
// Roles
isBeneficiary: yup.bool().notRequired(),
isCoordinator: yup.bool().notRequired(),
isOrganizer: yup.bool().notRequired(),
})

const defaults: PersonFormData = {
Expand Down
6 changes: 3 additions & 3 deletions src/gql/person.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ export type PersonFormData = {
companyNumber?: string
legalPersonName?: string
address?: string
isBeneficiary: boolean
isCoordinator: boolean
isOrganizer: boolean
isBeneficiary?: boolean
isCoordinator?: boolean
isOrganizer?: boolean
}

export type CreateBeneficiaryInput = {
Expand Down

0 comments on commit 60c8041

Please sign in to comment.