Skip to content
Snippets Groups Projects
Commit a90bf2ee authored by Brian Peiris's avatar Brian Peiris
Browse files

refactor assignment

parent 166c8bfc
No related branches found
No related tags found
No related merge requests found
...@@ -21,10 +21,8 @@ class ProfileEntryPanel extends Component { ...@@ -21,10 +21,8 @@ class ProfileEntryPanel extends Component {
} }
storeUpdated = () => { storeUpdated = () => {
this.setState({ const { avatar_id, display_name } = this.props.store.state.profile;
display_name: this.props.store.state.profile.display_name, this.setState({ avatar_id, display_name });
avatar_id: this.props.store.state.profile.avatar_id,
});
} }
saveStateAndFinish = (e) => { saveStateAndFinish = (e) => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment