From 8cd12c81aae5ad8dca8e80946c54f8a17429f5eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=20Erik=20St=C3=B8wer?= Date: Tue, 12 Dec 2023 21:15:27 +0100 Subject: [PATCH] Close edit notification modal after update --- src/modals/ModalEditNotifications.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/modals/ModalEditNotifications.js b/src/modals/ModalEditNotifications.js index 866155e1..c197b3ff 100644 --- a/src/modals/ModalEditNotifications.js +++ b/src/modals/ModalEditNotifications.js @@ -45,9 +45,12 @@ class ModalEditNotifications extends React.Component { }); } - handleUpdate() { + async handleUpdate() { const { user, dispatch } = this.props; - dispatch(OrganizationRegisterActions.updateUserNotification(user.username)); + await dispatch( + OrganizationRegisterActions.updateUserNotification(user.username) + ); + this.props.handleCloseModal(); } handleAddNewUserNotification() {