Skip to content

Commit

Permalink
fix: resolve executiv unit caresite lvl and retrieve plural label for…
Browse files Browse the repository at this point in the history
… chips filter into forms mater
  • Loading branch information
Mehdi-BOUYAHIA committed Nov 22, 2024
1 parent 55a7fed commit ad33cac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ const EncounterForm = ({

<BlockWrapper className={classes.inputItem}>
<ExecutiveUnitsInput
sourceType={SourceType.DOCUMENT}
sourceType={SourceType.SUPPORTED}
value={encounterService}
onChange={setEncounterService}
/>
Expand Down
4 changes: 2 additions & 2 deletions src/utils/filters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,9 @@ export const getFilterLabel = (key: FilterKeys, value: FilterValue): string => {
}
if (key === FilterKeys.FORM_NAME) {
if (value === FormNames.HOSPIT) {
return labels.formNames.hospit_plural
return labels.formNames.hospit
} else if (value === FormNames.PREGNANCY) {
return labels.formNames.pregnancy_pural
return labels.formNames.pregnancy
}
}
if (key === FilterKeys.VITAL_STATUSES) {
Expand Down

0 comments on commit ad33cac

Please sign in to comment.