Skip to content

Commit

Permalink
Silent Error; Hide Pincode autofill
Browse files Browse the repository at this point in the history
  • Loading branch information
gigincg committed Jan 3, 2025
1 parent 0899ddf commit 39c4c52
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/components/Patient/PatientRegistration.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { navigate } from "raviger";
import { Fragment, useEffect, useState } from "react";
import { useTranslation } from "react-i18next";

import CareIcon from "@/CAREUI/icons/CareIcon";
import SectionNavigator from "@/CAREUI/misc/SectionNavigator";

import { Button } from "@/components/ui/button";
Expand Down Expand Up @@ -67,7 +66,7 @@ export default function PatientRegistration(
const [samePhoneNumber, setSamePhoneNumber] = useState(false);
const [sameAddress, setSameAddress] = useState(true);
const [ageDob, setAgeDob] = useState<"dob" | "age">("dob");
const [showAutoFilledPincode, setShowAutoFilledPincode] = useState(false);
const [_showAutoFilledPincode, setShowAutoFilledPincode] = useState(false);
const [form, setForm] = useState<Partial<PatientModel>>({
nationality: "India",
phone_number: "+91",
Expand Down Expand Up @@ -602,7 +601,7 @@ export default function PatientRegistration(
>
<Input {...fieldProps("pincode")} type="number" />
</InputWithError>
{showAutoFilledPincode && (
{/* {showAutoFilledPincode && (
<div>
<CareIcon
icon="l-check-circle"
Expand All @@ -612,7 +611,7 @@ export default function PatientRegistration(
{t("pincode_autofill")}
</span>
</div>
)}
)} */}
<br />
<div className="grid grid-cols-2 gap-4">
<div>
Expand Down
1 change: 1 addition & 0 deletions src/pages/Patients/VerifyPatient.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ export default function VerifyPatient(props: { facilityId: string }) {
patient: patientData?.id,
live: false,
},
silent: true,
}),
enabled: !!patientData?.id,
});
Expand Down

0 comments on commit 39c4c52

Please sign in to comment.