frontend: error toast only goes away when clicked

This commit is contained in:
Mose Müller 2023-11-27 16:08:08 +01:00
parent a769f4eb3b
commit f5627e6a2f

View File

@ -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={