Skip to content

Commit

Permalink
Remove phone duplication check on patient update
Browse files Browse the repository at this point in the history
  • Loading branch information
Ashesh3 committed Sep 27, 2023
1 parent 3ca1237 commit dea0325
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Components/ExternalResult/FacilitiesSelectDialogue.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const FacilitiesSelectDialog = (props: Props) => {
<Cancel onClick={handleCancel} />
<Submit
onClick={handleOk}
disabled={!selectedFacility.id}
disabled={!selectedFacility?.id}
label={t("select")}
data-testid="submit-button"
/>
Expand Down
4 changes: 1 addition & 3 deletions src/Components/Patient/PatientRegister.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,6 @@ import { FormContextValue } from "../Form/FormContext.js";
const Loading = lazy(() => import("../Common/Loading"));
const PageTitle = lazy(() => import("../Common/PageTitle"));

// const debounce = require("lodash.debounce");

interface PatientRegisterProps extends PatientModel {
facilityId: string;
}
Expand Down Expand Up @@ -1260,7 +1258,7 @@ export const PatientRegister = (props: PatientRegisterProps) => {
required
label="Phone Number"
onChange={(event) => {
duplicateCheck(event.value);
if (!id) duplicateCheck(event.value);
field("phone_number").onChange(event);
}}
types={["mobile", "landline"]}
Expand Down

0 comments on commit dea0325

Please sign in to comment.