Skip to content

Commit

Permalink
fix: Add Validation for Insurance input fields in patient registratio…
Browse files Browse the repository at this point in the history
…n form (#8672)
  • Loading branch information
syedfardeenjeelani committed Oct 12, 2024
1 parent 795d4de commit 7eebafc
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/Components/HCX/InsuranceDetailsBuilder.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,8 @@ const InsuranceDetailEditCard = ({
>
<TextFormField
required
error={error}
name="subscriber_id"
error={error}
label={t("policy__subscriber_id")}
placeholder={t("policy__subscriber_id__example")}
value={policy.subscriber_id}
Expand All @@ -156,7 +156,6 @@ const InsuranceDetailEditCard = ({
<InsurerAutocomplete
required
name="insurer"
error={error}
label={t("policy__insurer")}
placeholder={t("policy__insurer__example")}
value={seletedInsurer}
Expand All @@ -171,16 +170,16 @@ const InsuranceDetailEditCard = ({
<>
<TextFormField
name="insurer_id"
error={error}
label={t("policy__insurer_id")}
placeholder={t("policy__insurer_id__example")}
value={policy.insurer_id}
onChange={handleUpdate}
/>
<TextFormField
name="insurer_name"
error={error}
required
label={t("policy__insurer_name")}
error={error}
placeholder={t("policy__insurer_name__example")}
value={policy.insurer_name}
onChange={handleUpdate}
Expand Down

0 comments on commit 7eebafc

Please sign in to comment.