aboutsummaryrefslogtreecommitdiff
path: root/src/api
diff options
context:
space:
mode:
authorVendicated <vendicated@riseup.net>2023-03-01 05:45:09 +0100
committerVendicated <vendicated@riseup.net>2023-03-01 05:45:17 +0100
commit37003edae94c2caa9904af3ca2adf5975bdd156a (patch)
tree2150ff4631a272231bd6485586669dffbafa7586 /src/api
parentfaa90eccd363b635b84be2162376645d6a83ad55 (diff)
downloadVencord-37003edae94c2caa9904af3ca2adf5975bdd156a.tar.gz
Vencord-37003edae94c2caa9904af3ca2adf5975bdd156a.tar.bz2
Vencord-37003edae94c2caa9904af3ca2adf5975bdd156a.zip
fix(Notifications): Correctly close errored notifications
Diffstat (limited to 'src/api')
-rw-r--r--src/api/Notifications/NotificationComponent.tsx2
1 files changed, 2 insertions, 0 deletions
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!()
});