From 9e1112eb52d421128c897159b543fa96ed464a69 Mon Sep 17 00:00:00 2001 From: asharonbaltazar Date: Wed, 7 Dec 2022 12:04:53 -0500 Subject: [PATCH] fix: hide notifs wrapper if no notifs --- frontend/components/context/Notifications/Notifications.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/frontend/components/context/Notifications/Notifications.tsx b/frontend/components/context/Notifications/Notifications.tsx index e0a9afbf2..82dcc3e14 100644 --- a/frontend/components/context/Notifications/Notifications.tsx +++ b/frontend/components/context/Notifications/Notifications.tsx @@ -10,6 +10,10 @@ const Notifications = ({ notifications, clearNotification, }: NoticationsProps) => { + if (!notifications.length) { + return null; + } + return (