Skip to content

Commit

Permalink
Close edit notification modal after update
Browse files Browse the repository at this point in the history
  • Loading branch information
testower committed Dec 12, 2023
1 parent 947c14e commit 8cd12c8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/modals/ModalEditNotifications.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 8cd12c8

Please sign in to comment.