Client: Dialogs: ChangeEmailDialog: fix

This commit is contained in:
Viktor Fomin 2023-05-11 12:44:09 +03:00
parent 15b5aaaf83
commit 4416e4c633

View File

@ -45,15 +45,10 @@ class ChangeEmailDialogComponent extends React.Component {
onSendEmailChangeInstructions = () => {
const { email } = this.state;
const {
user,
updateProfileInUsers,
updateProfile,
profile,
fromList,
} = this.props;
const { user, updateProfileInUsers, updateProfile, fromList } = this.props;
const { id } = user;
const newProfile = profile;
const newProfile = user;
newProfile.email = email;
this.setState({ isRequestRunning: true }, () => {
sendInstructionsToChangeEmail(id, email)