From 37003edae94c2caa9904af3ca2adf5975bdd156a Mon Sep 17 00:00:00 2001
From: Vendicated <vendicated@riseup.net>
Date: Wed, 1 Mar 2023 05:45:09 +0100
Subject: fix(Notifications): Correctly close errored notifications

---
 src/api/Notifications/NotificationComponent.tsx | 2 ++
 1 file changed, 2 insertions(+)

(limited to 'src/api/Notifications/NotificationComponent.tsx')

diff --git a/src/api/Notifications/NotificationComponent.tsx b/src/api/Notifications/NotificationComponent.tsx
index 65d4c43..036cacd 100644
--- a/src/api/Notifications/NotificationComponent.tsx
+++ b/src/api/Notifications/NotificationComponent.tsx
@@ -89,4 +89,6 @@ export default ErrorBoundary.wrap(function NotificationComponent({
             )}
         </button>
     );
+}, {
+    onError: ({ props }) => props.onClose!()
 });
-- 
cgit 

