From 04f3987fe5df09d9dee00afbf2a65be2a8fccb37 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 a10a94ca0..949d8f4e3 100644 --- a/frontend/src/components/pages/details/components/DetailsInformationDesk/DetailsInformationDesk.tsx +++ b/frontend/src/components/pages/details/components/DetailsInformationDesk/DetailsInformationDesk.tsx @@ -39,10 +39,13 @@ export const DetailsInformationDesk: React.FC = ({ setHoveredCardId(null); }} > -
- -
-
+ {(photoUrl || type.pictogramUri) && ( +
+ +
+ )} + +

{name}