Client: Dialogs: ChangeEmailDialog: fix
This commit is contained in:
parent
15b5aaaf83
commit
4416e4c633
@ -45,15 +45,10 @@ class ChangeEmailDialogComponent extends React.Component {
|
|||||||
|
|
||||||
onSendEmailChangeInstructions = () => {
|
onSendEmailChangeInstructions = () => {
|
||||||
const { email } = this.state;
|
const { email } = this.state;
|
||||||
const {
|
const { user, updateProfileInUsers, updateProfile, fromList } = this.props;
|
||||||
user,
|
|
||||||
updateProfileInUsers,
|
|
||||||
updateProfile,
|
|
||||||
profile,
|
|
||||||
fromList,
|
|
||||||
} = this.props;
|
|
||||||
const { id } = user;
|
const { id } = user;
|
||||||
const newProfile = profile;
|
const newProfile = user;
|
||||||
|
newProfile.email = email;
|
||||||
|
|
||||||
this.setState({ isRequestRunning: true }, () => {
|
this.setState({ isRequestRunning: true }, () => {
|
||||||
sendInstructionsToChangeEmail(id, email)
|
sendInstructionsToChangeEmail(id, email)
|
||||||
|
Loading…
Reference in New Issue
Block a user