partner-personal-area

This commit is contained in:
Николай Полтщук 2023-02-27 16:57:33 +03:00
parent 9f96ce6167
commit f4fb2d857a

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))