Skip to content

Commit

Permalink
Remove phone duplication check on patient update (#6359)
Browse files Browse the repository at this point in the history
* Delay patient phone duplicate check

* Revert "Delay patient phone duplicate check"

This reverts commit 1fc93a7.

* Remove phone duplication check on patient update
  • Loading branch information
Ashesh3 authored Sep 27, 2023
1 parent 6319cff commit bebb693
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 bebb693

Please sign in to comment.