Merge pull request #53 from apuc/partner-personal-area

partner-personal-area
This commit is contained in:
NikoM1k
2023-02-27 15:58:52 +02:00
committed by GitHub

View File

@ -64,6 +64,9 @@ export const ProfileHeader = () => {
const [isLoggingOut, setIsLoggingOut] = useState(false);
useEffect(() => {
if (localStorage.getItem('role_status') === '18') {
return
}
apiRequest(`/profile/${localStorage.getItem('cardId')}`)
.then((profileInfo) =>
dispatch(setProfileInfo(profileInfo))