diff options
author | Vendicated <vendicated@riseup.net> | 2023-03-01 05:45:09 +0100 |
---|---|---|
committer | Vendicated <vendicated@riseup.net> | 2023-03-01 05:45:17 +0100 |
commit | 37003edae94c2caa9904af3ca2adf5975bdd156a (patch) | |
tree | 2150ff4631a272231bd6485586669dffbafa7586 /src/api/Notifications | |
parent | faa90eccd363b635b84be2162376645d6a83ad55 (diff) | |
download | Vencord-37003edae94c2caa9904af3ca2adf5975bdd156a.tar.gz Vencord-37003edae94c2caa9904af3ca2adf5975bdd156a.tar.bz2 Vencord-37003edae94c2caa9904af3ca2adf5975bdd156a.zip |
fix(Notifications): Correctly close errored notifications
Diffstat (limited to 'src/api/Notifications')
-rw-r--r-- | src/api/Notifications/NotificationComponent.tsx | 2 |
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!() }); |