From 9074f25521e4ce64454d8ef35c56af6c7f17437d Mon Sep 17 00:00:00 2001 From: Maud Royer Date: Thu, 19 Sep 2024 13:12:16 +0200 Subject: [PATCH] fix: comm admin status labels Signed-off-by: Maud Royer --- src/app/medicament/[CIS]/page.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/medicament/[CIS]/page.tsx b/src/app/medicament/[CIS]/page.tsx index 9f703b3..dce3058 100644 --- a/src/app/medicament/[CIS]/page.tsx +++ b/src/app/medicament/[CIS]/page.tsx @@ -380,13 +380,13 @@ export default async function Page({ ) : ( <>Prix libre - non remboursable )} - {p.CommId !== PresentationComm.Commercialisation && ( + {Number(p.CommId) !== PresentationComm.Commercialisation && ( {PresentationComm[p.CommId]} {p.PresCommDate && ` (${dateShortFormat(p.PresCommDate)})`} )} - {p.StatId && p.StatId === PresentationStat.Abrogation && ( + {p.StatId && Number(p.StatId) === PresentationStat.Abrogation && ( {PresentationStat[p.StatId]} {p.PresStatDate && ` (${dateShortFormat(p.PresStatDate)})`}