Skip to content

Commit

Permalink
feat: display full spec name in med groups
Browse files Browse the repository at this point in the history
Signed-off-by: Maud Royer <hello@maudroyer.fr>
  • Loading branch information
jillro committed Oct 18, 2024
1 parent 2f62108 commit 66a49d3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/components/MedGroupSpecList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,7 @@ export default async function MedGroupSpecList({
href={`/medicament/${specialite.SpecId}`}
className={fr.cx("fr-text--sm", "fr-link")}
>
{formatSpecName(specialite.SpecDenom01)
.replace(`${formatSpecName(groupName)}, `, "")
.replace(formatSpecName(groupName), "")}
{formatSpecName(specialite.SpecDenom01)}
</Link>
</li>
))}
Expand Down

0 comments on commit 66a49d3

Please sign in to comment.