From 235c2fa61df40cc411a8c04c5171a1a32c288922 Mon Sep 17 00:00:00 2001 From: Florian Sommariva Date: Thu, 27 Jul 2023 13:30:25 +0200 Subject: [PATCH] Do not try to display the informationDesk thumbnail if there isn't one. --- .../DetailsInformationDesk/DetailsInformationDesk.tsx | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/frontend/src/components/pages/details/components/DetailsInformationDesk/DetailsInformationDesk.tsx b/frontend/src/components/pages/details/components/DetailsInformationDesk/DetailsInformationDesk.tsx index 939de2d69..bf5605b19 100644 --- a/frontend/src/components/pages/details/components/DetailsInformationDesk/DetailsInformationDesk.tsx +++ b/frontend/src/components/pages/details/components/DetailsInformationDesk/DetailsInformationDesk.tsx @@ -40,10 +40,13 @@ export const DetailsInformationDesk: React.FC = ({ setHoveredCardId(null); }} > -
- -
-
+ {(photoUrl || type.pictogramUri) && ( +
+ +
+ )} + +

{name}