From 86ba18fdc495e0519b91eb9c9f826a6a9ed15e88 Mon Sep 17 00:00:00 2001 From: Shravya Ramesh Date: Fri, 23 Apr 2021 15:28:44 -0700 Subject: circle ci errors --- src/components/profile/ProfileHeader.tsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/components/profile') 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 = ({ 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(' ')]; -- cgit v1.2.3-70-g09d2