From a90bf2ee83ffa53c73dad7b8220d38108636fb2d Mon Sep 17 00:00:00 2001
From: Brian Peiris <brianpeiris@gmail.com>
Date: Thu, 29 Mar 2018 18:01:19 -0700
Subject: [PATCH] refactor assignment

---
 src/react-components/profile-entry-panel.js | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/src/react-components/profile-entry-panel.js b/src/react-components/profile-entry-panel.js
index dda86bca9..cc20df8a4 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) => {
-- 
GitLab