diff options
Diffstat (limited to 'src/components/profile/ProfileHeader.tsx')
-rw-r--r-- | src/components/profile/ProfileHeader.tsx | 7 |
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(' ')]; |