Skip to content

Commit

Permalink
Merge pull request #6 from betagouv/staging
Browse files Browse the repository at this point in the history
Fix comm admin status labels
  • Loading branch information
jillro authored Sep 19, 2024
2 parents 61312f0 + 9074f25 commit 310a3a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/medicament/[CIS]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -380,13 +380,13 @@ export default async function Page({
) : (
<>Prix libre - non remboursable</>
)}
{p.CommId !== PresentationComm.Commercialisation && (
{Number(p.CommId) !== PresentationComm.Commercialisation && (
<Badge severity="warning" className={fr.cx("fr-ml-1v")}>
{PresentationComm[p.CommId]}
{p.PresCommDate && ` (${dateShortFormat(p.PresCommDate)})`}
</Badge>
)}
{p.StatId && p.StatId === PresentationStat.Abrogation && (
{p.StatId && Number(p.StatId) === PresentationStat.Abrogation && (
<Badge severity="error" className={fr.cx("fr-ml-1v")}>
{PresentationStat[p.StatId]}
{p.PresStatDate && ` (${dateShortFormat(p.PresStatDate)})`}
Expand Down

0 comments on commit 310a3a5

Please sign in to comment.