Skip to content

Commit

Permalink
fixed username inconsistencies
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexTheGuitarGuy committed Feb 14, 2024
1 parent 9cde67b commit 52de2d0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/components/Header/ProfileButton/ProfileButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ const ProfileButton = () => {
const [showProfileData, setShowProfileData] = useState(false)

const isLoggedIn = useAppSelector(getIsLoggedIn)
const login = useAppSelector(getLogin)
const myData = useAppSelector(getMyData)

const dispatch = useAppDispatch()
Expand Down Expand Up @@ -62,7 +61,7 @@ const ProfileButton = () => {
ref={profileDataRef as LegacyRef<HTMLDivElement>}
>
<>
<div className='font-semibold sm:text-lg lg:text-base'>{login}</div>
<div className='font-semibold sm:text-lg lg:text-base'>{myData?.fullName}</div>
<PrimaryButton
as='navlink'
to='/profile'
Expand Down

0 comments on commit 52de2d0

Please sign in to comment.