diff --git a/src/components/ProfileHeader/ProfileHeader.js b/src/components/ProfileHeader/ProfileHeader.js index 845b284a..1496dc52 100644 --- a/src/components/ProfileHeader/ProfileHeader.js +++ b/src/components/ProfileHeader/ProfileHeader.js @@ -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))