diff --git a/web/src/features/notifications/NotificationWrapper.tsx b/web/src/features/notifications/NotificationWrapper.tsx index f25fb72..3b9499c 100644 --- a/web/src/features/notifications/NotificationWrapper.tsx +++ b/web/src/features/notifications/NotificationWrapper.tsx @@ -71,7 +71,9 @@ const Notifications: React.FC = () => { : "circle-info"; } + const id = data.id toast({ + id, duration: data.duration || 3000, position: data.position || "top-right", render: () => ( @@ -105,7 +107,9 @@ const Notifications: React.FC = () => { useNuiEvent("notify", (data) => { if (!data.title && !data.description) return; if (data.id && toast.isActive(data.id)) return; + const id = data.id toast({ + id, title: data.title, description: data.description, duration: data.duration || 4000,