Skip to content

Commit

Permalink
Merge pull request #105 from srksumanth/master
Browse files Browse the repository at this point in the history
prevent accidental email update
  • Loading branch information
darkenergy96 authored Oct 1, 2018
2 parents 1506e5e + 12e58ed commit 3411172
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion components/dashboard/profile/UpdateProfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@ class UpdateProfile extends Component {

componentDidMount() {
if (this.props.profile) {
this.setState({ ...this.state, ...this.props.profile });
const profile = { ...this.props.profile };
delete profile.email;
this.setState({ ...this.state, ...profile });
}
this.fetchAllCities();
}
Expand Down

0 comments on commit 3411172

Please sign in to comment.