From f5627e6a2f414ebed2d37fb8e11e1bc92ae07603 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mose=20M=C3=BCller?= Date: Mon, 27 Nov 2023 16:08:08 +0100 Subject: [PATCH] frontend: error toast only goes away when clicked --- frontend/src/components/NotificationsComponent.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/NotificationsComponent.tsx b/frontend/src/components/NotificationsComponent.tsx index 9a9f96c..5c4defb 100644 --- a/frontend/src/components/NotificationsComponent.tsx +++ b/frontend/src/components/NotificationsComponent.tsx @@ -28,7 +28,9 @@ export const Notifications = React.memo((props: NotificationProps) => { onClose={() => removeNotificationById(notification.id)} onClick={() => removeNotificationById(notification.id)} onMouseLeave={() => { - removeNotificationById(notification.id); + if (notification.levelname !== 'ERROR') { + removeNotificationById(notification.id); + } }} show={true} autohide={