From 9af6d2ac93031b4c3c2578e433d687e93ee52845 Mon Sep 17 00:00:00 2001 From: juliajforesti Date: Tue, 2 Jan 2024 16:56:34 -0300 Subject: [PATCH] . --- apps/meteor/client/components/GenericCard/GenericCard.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/meteor/client/components/GenericCard/GenericCard.tsx b/apps/meteor/client/components/GenericCard/GenericCard.tsx index f1c4616afc5f..335b8e6be959 100644 --- a/apps/meteor/client/components/GenericCard/GenericCard.tsx +++ b/apps/meteor/client/components/GenericCard/GenericCard.tsx @@ -17,14 +17,14 @@ export const GenericCard: React.FC = ({ title, body, buttons, const cardId = useUniqueId(); const descriptionId = useUniqueId(); - const iconType = { - [type || 'neutral']: true, + const iconType = type && { + [type]: true, }; return ( - {icon && } + {icon && } {title} {body}