Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

fix: hide notifs wrapper if no notifs

asharonbaltazar9e1112eb52d4
diff --git a/frontend/components/context/Notifications/Notifications.tsx b/frontend/components/context/Notifications/Notifications.tsx
index e0a9afbf24..82dcc3e14d 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 (
<div className="hidden fixed z-50 top-1 w-full inset-x-0 pointer-events-none md:flex justify-center">
<div className="flex flex-col gap-y-2 w-96">