From 24d8f08273a768bd572653ea5c4c7c0d170b2bab Mon Sep 17 00:00:00 2001 From: r41ph Date: Wed, 6 Nov 2024 08:28:01 +0000 Subject: [PATCH] fix: hide retirement reason when empty --- .../src/components/certificate/index.tsx | 25 ++++++++++--------- 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/web-components/src/components/certificate/index.tsx b/web-components/src/components/certificate/index.tsx index 145646d7e5..8bd727f45b 100644 --- a/web-components/src/components/certificate/index.tsx +++ b/web-components/src/components/certificate/index.tsx @@ -33,7 +33,6 @@ export default function Certificate({ certificateNotFoundDescription, }: CertificateProps): JSX.Element { const { classes, cx } = useCertificateStyles({ background }); - return (
@@ -214,18 +213,20 @@ export default function Certificate({ ))} - - - {certificateData.retirementReason} - - + + {certificateData.retirementReason} + + + )}