Skip to content

Commit

Permalink
Allow numbers in MSP (#296)
Browse files Browse the repository at this point in the history
Doctor's MSP no longer only accepts numbers to be entered
  • Loading branch information
ChinemeremChigbo authored and leogjhuang committed Jul 30, 2023
1 parent c445f1f commit 81aaa35
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion lib/applications/validation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,6 @@ export const applicantFacingRenewalDoctorSchema = object().shape({
is: true,
then: string()
.typeError('Please enter the MSP number')
.matches(/^\d+$/, 'Must only contain numbers')
.required('Please enter the MSP number'),
}),
doctorAddressLine1: string()
Expand Down
4 changes: 1 addition & 3 deletions lib/physicians/validation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,7 @@ export const physicianAssessmentMutationSchema = physicianAssessmentSchema.shape
export const requestPhysicianInformationSchema = object({
firstName: string().required('Please enter a first name'),
lastName: string().required('Please enter a last name'),
mspNumber: string()
.matches(/^\d+$/, 'Must only contain numbers')
.required('Please enter the MSP number'),
mspNumber: string().required('Please enter the MSP number'),
phone: string()
.required('Please enter a phone number')
.matches(phoneNumberRegex, 'Please enter a valid phone number in the format 000-000-0000'),
Expand Down

0 comments on commit 81aaa35

Please sign in to comment.