Skip to content

Commit

Permalink
fixes dob formatting of patient registration (ohcnetwork#10135)
Browse files Browse the repository at this point in the history
  • Loading branch information
rithviknishad authored Jan 24, 2025
1 parent 1a1afd6 commit e60b48b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/components/Patient/PatientRegistration.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ import dayjs from "@/Utils/dayjs";
import routes from "@/Utils/request/api";
import mutate from "@/Utils/request/mutate";
import query from "@/Utils/request/query";
import { parsePhoneNumber } from "@/Utils/utils";
import { dateQueryString, parsePhoneNumber } from "@/Utils/utils";
import GovtOrganizationSelector from "@/pages/Organization/components/GovtOrganizationSelector";
import { PatientModel } from "@/types/emr/patient";
import { Organization } from "@/types/organization/organization";
Expand Down Expand Up @@ -519,7 +519,7 @@ export default function PatientRegistration(
field.value ? new Date(field.value) : undefined
}
onChange={(date) =>
field.onChange(date?.toISOString())
field.onChange(dateQueryString(date))
}
id="dob"
/>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/PublicAppointments/PatientRegistration.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ export function PatientRegistration(props: PatientRegistrationProps) {
field.value ? new Date(field.value) : undefined
}
onChange={(date) =>
field.onChange(date?.toISOString())
field.onChange(dateQueryString(date))
}
id="dob"
/>
Expand Down

0 comments on commit e60b48b

Please sign in to comment.