Skip to content

Commit

Permalink
Fix: Allergy count to Updated to has allergies text (#9399)
Browse files Browse the repository at this point in the history
  • Loading branch information
AdityaJ2305 authored Dec 12, 2024
1 parent ed48ece commit ead041b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
1 change: 1 addition & 0 deletions public/locale/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -794,6 +794,7 @@
"get_tests": "Get Tests",
"goal": "Our goal is to continuously improve the quality and accessibility of public healthcare services using digital tools.",
"granted_on": "Granted On",
"has_allergies": "Has Allergies",
"has_domestic_healthcare_support": "Has domestic healthcare support?",
"has_sari": "Has SARI (Severe Acute Respiratory illness)?",
"health-profile": "Health Profile",
Expand Down
15 changes: 8 additions & 7 deletions src/components/Patient/PatientHome.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -362,13 +362,14 @@ export const PatientHome = (props: {
text={t("TELEMEDICINE")}
/>
)}
{patientData.allergies && (
<Chip
variant="danger"
size="small"
text={`${t("allergies")} ${patientData.allergies.length}`}
/>
)}
{patientData.allergies &&
patientData.allergies.trim().length > 0 && (
<Chip
variant="danger"
size="small"
text={t("has_allergies")}
/>
)}
</div>
</div>

Expand Down

0 comments on commit ead041b

Please sign in to comment.