Skip to content

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

Update frontend/src/components/notifications/Notifications.tsx

Scott Wilson910f3c762f84
diff --git a/frontend/src/components/notifications/Notifications.tsx b/frontend/src/components/notifications/Notifications.tsx
index 3babc88adf..2727880382 100644
--- a/frontend/src/components/notifications/Notifications.tsx
+++ b/frontend/src/components/notifications/Notifications.tsx
@@ -65,7 +65,7 @@ export const createNotification = (
toast(<NotificationContent {...myProps} />, {
position: "bottom-right",
...toastProps,
- autoClose: toastProps.autoClose || myProps?.type === "error" ? 8000 : 5000,
+ autoClose: toastProps.autoClose || (myProps?.type === "error" ? 8000 : 5000),
theme: "dark",
type: myProps?.type || "info",
className: `pointer-events-auto ${toastProps.className}`