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 00c0fd9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions src/components/Header/ProfileButton/ProfileButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { LegacyRef, useState } from 'react'

import { useAppDispatch, useAppSelector } from '@/hooks/reduxHooks'
import { logout } from '@/redux/auth-reducer/auth-reducer'
import { getIsLoggedIn, getLogin } from '@/redux/auth-reducer/auth-selector'
import { getIsLoggedIn } from '@/redux/auth-reducer/auth-selector'
import { getMyData } from '@/redux/profile-reducer/profile-selector'

import placeholder from '@/assets/pfps/placeholder.jpg'
Expand All @@ -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
2 changes: 1 addition & 1 deletion src/components/Login/Login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { LoginPayload } from '@/types'
import PrimaryButton from '@/components/common/Buttons/PrimaryButton/PrimaryButton'
import FormInput from '@/components/common/Inputs/FormInput/FormInput'

const Login: FC<{}> = () => {
const Login: FC = () => {
const isLoggedIn = useAppSelector(getIsLoggedIn)
const captchaURL = useAppSelector(getCaptchaURL)

Expand Down

0 comments on commit 00c0fd9

Please sign in to comment.