diff --git a/src/react-components/profile-entry-panel.js b/src/react-components/profile-entry-panel.js index dda86bca9ff141335c706f6305ea7d3982e279ed..cc20df8a4679475744f7c40f997f87b71d2b4daf 100644 --- a/src/react-components/profile-entry-panel.js +++ b/src/react-components/profile-entry-panel.js @@ -21,10 +21,8 @@ class ProfileEntryPanel extends Component { } storeUpdated = () => { - this.setState({ - display_name: this.props.store.state.profile.display_name, - avatar_id: this.props.store.state.profile.avatar_id, - }); + const { avatar_id, display_name } = this.props.store.state.profile; + this.setState({ avatar_id, display_name }); } saveStateAndFinish = (e) => {