Skip to content

Commit db5dbac

Browse files
authored
fix: show notification settings alert only on user edit (#1257)
Reviewed-by: @ajohn25 Reviewed-by: @hiemanshu
1 parent 27e856a commit db5dbac

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/containers/UserEdit.jsx

+4-2
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,10 @@ class UserEdit extends React.Component {
7272
switch (this.props.authType) {
7373
case UserEditMode.Edit: {
7474
const result = await this.props.mutations.editUser(formData);
75-
this.setState({ user: result.data.editUser });
75+
this.setState({
76+
user: result.data.editUser,
77+
snackbarOpen: true
78+
});
7679
if (this.props.onRequestClose) {
7780
this.props.onRequestClose();
7881
}
@@ -155,7 +158,6 @@ class UserEdit extends React.Component {
155158
break;
156159
}
157160
}
158-
this.setState({ snackbarOpen: true });
159161
};
160162

161163
handleClick = () => this.setState({ changePasswordDialog: true });

0 commit comments

Comments
 (0)