From 323e37e68448b82839e6fac4065a85aee698db88 Mon Sep 17 00:00:00 2001 From: timothycarambat Date: Wed, 22 May 2024 12:49:12 -0500 Subject: [PATCH] add fallback footer icon --- frontend/src/components/Footer/index.jsx | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/frontend/src/components/Footer/index.jsx b/frontend/src/components/Footer/index.jsx index 6e80f0df..2dfccc3f 100644 --- a/frontend/src/components/Footer/index.jsx +++ b/frontend/src/components/Footer/index.jsx @@ -108,10 +108,13 @@ export default function Footer() { rel="noreferrer" className="transition-all duration-300 p-2 rounded-full text-white bg-sidebar-button hover:bg-menu-item-selected-gradient hover:border-slate-100 hover:border-opacity-50 border-transparent border" > - {React.createElement(ICON_COMPONENTS[item.icon], { - weight: "fill", - className: "h-5 w-5", - })} + {React.createElement( + ICON_COMPONENTS?.[item.icon] ?? ICON_COMPONENTS.Info, + { + weight: "fill", + className: "h-5 w-5", + } + )} ))} {!isMobile && }