From 95a55d18ffbac8d896ccd6bc1d0f50e6677e6996 Mon Sep 17 00:00:00 2001 From: Tom Jeatt Date: Thu, 27 Jun 2024 15:49:11 +0100 Subject: [PATCH] fix: type error --- .../src/pages/Fusion/components/PartnersSection/PartnerCard.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/evm/src/pages/Fusion/components/PartnersSection/PartnerCard.tsx b/apps/evm/src/pages/Fusion/components/PartnersSection/PartnerCard.tsx index cb43ef81..43e346ea 100644 --- a/apps/evm/src/pages/Fusion/components/PartnersSection/PartnerCard.tsx +++ b/apps/evm/src/pages/Fusion/components/PartnersSection/PartnerCard.tsx @@ -56,6 +56,8 @@ const PartnerCard = ({ const isMobile = useMediaQuery(theme.breakpoints.down('md')); const getMedalIcon = () => { + if (!medal) return; + const medalIcon = medal === 'gold' ? : medal === 'silver' ? : ; const capitalisedMedalName = medal.charAt(0).toUpperCase() + medal.slice(1);