aboutsummaryrefslogtreecommitdiff
path: root/src/components/profile/ProfileHeader.tsx
diff options
context:
space:
mode:
authorShravya Ramesh <shravs1208@gmail.com>2021-04-23 15:28:44 -0700
committerShravya Ramesh <shravs1208@gmail.com>2021-04-23 15:28:44 -0700
commit86ba18fdc495e0519b91eb9c9f826a6a9ed15e88 (patch)
treed3097a754afef19fda893f46e28a5d31a5822ad9 /src/components/profile/ProfileHeader.tsx
parenta27963c51aa2c0b65dd23b5e7211addf5995046f (diff)
circle ci errors
Diffstat (limited to 'src/components/profile/ProfileHeader.tsx')
-rw-r--r--src/components/profile/ProfileHeader.tsx7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/components/profile/ProfileHeader.tsx b/src/components/profile/ProfileHeader.tsx
index 82eda258..3e83d991 100644
--- a/src/components/profile/ProfileHeader.tsx
+++ b/src/components/profile/ProfileHeader.tsx
@@ -35,12 +35,13 @@ const ProfileHeader: React.FC<ProfileHeaderProps> = ({
userXId ? state.userX[screenType][userXId] : state.user,
);
- const state: RootState = useStore().getState();
- const loggedInUserId = state.user.user.userId;
-
const {
user: {username = ''},
} = useSelector((state: RootState) => state.user);
+
+ const state: RootState = useStore().getState();
+ const loggedInUserId = state.user.user.userId;
+
const [drawerVisible, setDrawerVisible] = useState(false);
const [showBadgeView, setBadgeViewVisible] = useState(false);
const [firstName, lastName] = [...name.split(' ')];