Skip to content

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

improvement: reduce non-error toast duration

Scott Wilsona25eb6deac5b
diff --git a/frontend/src/components/notifications/Notifications.tsx b/frontend/src/components/notifications/Notifications.tsx
index 121e840d69..a20723112b 100644
--- a/frontend/src/components/notifications/Notifications.tsx
+++ b/frontend/src/components/notifications/Notifications.tsx
@@ -71,7 +71,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 : 3000),
theme: "dark",
type: myProps?.type || "info",
className: `pointer-events-auto ${toastProps.className}`